Ruby/Method/undef
Материал из Wiki.crossplatform.ru
Версия от 17:10, 26 мая 2010; (Обсуждение)
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