2012/7/10 Iaki Baz Castillo <ibc / aliax.net>:
> 2012/7/9 Robert Klemme <shortcutter / googlemail.com>:
>> class Object
>>   def to_lambda(method, *a)
>>     lambda {|*b| send(method, *a, *b)}
>>   end
>> end
>>
>> With that we can do
>>
>> irb(main):015:0> l = s.to_lambda(:<<, "<X>")
>
> Hi, what is "s" in this code?

Ok, sorry, "s" is any object.

The code seems indeed useful. What about a gem "lambdarize"? :)

-- 
Iaki Baz Castillo
<ibc / aliax.net>