1 2 3 4 5 6 7 8 9
class BasicObject remove_method :method_missing end begin Object.new.test_method rescue NoMethodError => e puts e.class.name end