Getting method names

How do I get the name of the missing method inside the missing_method
method?

class Foo
def missing_method(*args)
puts " <#{???}> method is not yet implemented"
# ^^^^^^ What should I put here?
end
end

f = Foo.new
f.boo # This should print " method is not yet implemented"

TIA,
– shanko

How do I get the name of the missing method inside the missing_method
method?

ruby a.rb
:test

expand -t2 a.rb
class Test
def method_missing(meth, *args)
p meth, args
end
end

Test.new.test

···

On Fri, 28 Nov 2003 12:45:09 -0600, Shashank Date wrote:


Simon Strandgaard

“Simon Strandgaard” neoneye@adslhome.dk wrote in message

def method_missing(meth, *args)
^^^^
Ah! I should have known better … (/me smack forehead !)

Sorry for the noise :frowning: