« first day (1037 days earlier)      last day (2218 days later) » 

12:52 AM
Oh. I guess that sounds good.
 
1:09 AM
Anyone have any suggestions about the question I asked earlier then retracted?
4 hours ago, by thesecretmaster
I have a block. I want to get a binding which contains all the variables in that blocks scope at the end of running the block and then take that binding and pass it to ERB.new("").result. block.binding doesn't seem to work, and nothing else I try seems to. Tips?
 
I have a question about the X (the why) of the Y (what you say you want to do). Can you give us some context about it? When you say "variables"?, what do you mean?
 
It's in a gem I'm working on, and the user inputs a block, which should provide variables for an ERB compilation(?). The ERB compilation occurs in a different scope from the initial scope of the block, and I don't want to pollute that scope with the variables from the block by calling it. Also, the result instance method for an ERB object takes a binding, so it seems like that is how I should do it.
 
 
10 hours later…
11:10 AM
We don't use git in the office.

We have tickets, everyone works ontheir own tickets, and we send it to kim when it's done.

Kim is our git.
I firmly believe the office would crumble without kim
I've tried 3 times to sell git to them, but they're cobol developers and won't budge
I use git, which has saved me a number of times when I accidentally folded spacetime in on itself in vim
 
 
3 hours later…
2:00 PM
@Cereal That's nuts! (the Kim single-point-of-failure, that is).
@thesecretmaster I've done something like this. Let me see if I can find it.
 
Yeah. Some of them seem interested in learning source control, but waht they have works so
 
They won't change until they have no Kim.
 
No, someone else will just take up merging duties
 
That's sad.
18
A: Problem using OpenStruct with ERB

toklandThe problem is where the binding is being executed. The 1.8.7-way obj.send(:binding) does not work anymore (see issue2161), the environment must be the object itself. So use instance_eval: require 'ostruct' require 'erb' namespace = OpenStruct.new(:first => 'Salvador', :last => 'Espriu') templa...

@thesecretmaster ^ This is way better than how I did it.
 
 
2 hours later…
3:54 PM
Good morning, all.
 
4:05 PM
@Cereal sup?
I noticed you haven't been around in JS lately
 
I started school again, I'm not really around anywhere lately
 
Oh, good luck. Would you still have time to moderate the room?
 
Probably not, you can remove me from RO if you want
 
Well, you're welcome back whenever you'd like
 
4:57 PM
Wherever you go
Whatever you do
We will be right here waiting for you
 
 
2 hours later…
7:02 PM
@sagarpandya82 Imagine being sung that while leaving a prison
 
That's a dark take on it indeed:)
 
 
1 hour later…
8:23 PM
I now have to figure out why I had my gem converting blocks to instance methods. My commit messages need to be more verbose.
 

« first day (1037 days earlier)      last day (2218 days later) »