Mega Code Archive
Categories
/
Ruby
/
Method
Undefine a method with undef
def hello puts "Hello, Matz!" end hello # => Hello, Matz! undef hello # undefines the method named hello hello # try calling this method now