Robert Klemme
6/2/2006 10:49:00 AM
Anselm wrote:
> Hello,
>
> Is it possible to change the binding of a Proc object ?
You can only change the binding of "self":
>> self
=> main
>> pr = lambda { self }
=> #<Proc:0x003ef918@(irb):2>
>> pr[]
=> main
>> obj = Object.new
=> #<Object:0x3e98a0>
>> obj.instance_eval &pr
=> #<Object:0x3e98a0>
Kind regards
robert