in reply to Does Method Exist?
Depending on your context you might also use an eval block, a non-existing method throws an exception. Sadly other errors also throw exceptions, so you might have to check for the exact exception.
(Update: s/isa/can/, sorry for the thinko)
|
|---|