From: Kent Sibilev Date: 2005-06-10T04:02:24+09:00 Subject: Re: Getting a method object directly from a module irb(main):001:0> module M irb(main):002:1> def m irb(main):003:2> end irb(main):004:1> end => nil irb(main):005:0> M.instance_method(:m) => # Kent. On 6/9/05, Daniel Berger wrote: > Hi all, > > Is it possible to get a method object from a Module directly? This > doesn't work: > > module Foo > def my_method > end > end > > method = Foo.method(:my_method) > => NameError: undefined method `my_method' for class `Module' > > Is there a way to do what I mean? > > Regards, > > Dan > > >