From: Eugene Ventimiglia Date: 2001-02-28T14:38:28+09:00 Subject: [ruby-talk:11745] How do I reach members from a Proc? Here's a reduced version of what I'm trying to do: class Hello def install(&p) @action=p end def do @action.call end def help puts "in help" end end h=Hello.new h.install { puts "in proc" help } h.do ## And the error I get is: in proc /tmp/ruby.in:16: undefined local variable or method `help' for # (NameError) from /tmp/ruby.in:14:in `call' from /tmp/ruby.in:6:in `do' from /tmp/ruby.in:18 I tried "self.help" (that's probably only funny in English), but what I really need is Hello's help method. I suppose I could do some scoping trick, but where? I'd prefer to keep the installed block as light weight as possible. --e