From: Tony Arcieri Date: 2009-10-09T04:21:21+09:00 Subject: Re: Mixing instance_eval and block with arguments --0050450175312734340475714102 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Oct 8, 2009 at 10:04 AM, Robert Klemme wrote: > In other words: I like to define a block as an initializer which I can > store away somewhere and invoke that initializer later on in the > context of "self" and pass arguments at the same time. Any ideas how > I can accomplish this elegantly? > Sounds like you need instance_exec, which is a 1.9 feature but there are implementations for 1.8: http://eigenclass.org/hiki.rb?instance_exec -- Tony Arcieri Medioh/Nagravision --0050450175312734340475714102--