1 2 3 4 5 6 7 8 9 10
class M def initialize def hello end end end p M.method_defined?(:hello) M.new p M.method_defined?(:hello)
1 2
false true