From: Robert Klemme Date: 2012-08-22T23:29:43+09:00 Subject: Re: Finding methods inside a scope On Wed, Aug 22, 2012 at 1:45 PM, Jan E. wrote: > Those are method *calls*, not method definitions. Also the call to #plate does not introduce a scope. If at all the scope is opened by the block passed to #plate. > I'm pretty sure listing method calls is complicated and requires a deep > analysis of Ruby internals. For a first start one can do plate do p method(:serve), method(:eat) serve do |d| d.pizza 2 d.momo 5 end eat do |d| d.pizza 1 d.momo 2 end end The output will tell you something about the class in which the method is defined. > What do you need that for? I second that question. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/