From: yermej Date: 2010-10-17T12:45:20+09:00 Subject: Re: check contents of a pointer. On Oct 16, 12:29 pm, John Smith wrote: > $ irb>> RUBY_VERSION > > => "1.8.6" Then this will work: ruby-1.8.6-p399 > "".method(:length).inspect.match(/#([^#]*)>/)[1] => "length" or: class Method def name inspect.match(/#([^#]*)>/)[1] end end ruby-1.8.6-p399 > "".method(:length).name => "length"