Hacking, Talking, Eating
Join or login to comment.
Just learned that Proc.new will take the block passed into the method where you call it. So we could do this:
def foo(callable = nil) (callable || Proc.new).call(42)end
Might be a bit too clever, though.
0 · February 19, 2014
We went to Martollis, be right back.
0 · February 18, 2014
running late will be there by 7pm
Help support your Meetup
Sponsors food and drinks for events and also pays the meetup.com dues
We just grab a coffee and speak French. Some people have been coming every week for months... it creates a kind of warmth to the group.
— Rafaël, started French Conversation Group
Meetup members, Log in