Class: Module
Instance Method Summary collapse
Instance Method Details
#redefine_method(method, &block) ⇒ Object
7 8 9 10 |
# File 'lib/cloudist/core_ext/module.rb', line 7 def redefine_method(method, &block) remove_possible_method(method) define_method(method, &block) end |
#remove_possible_method(method) ⇒ Object
2 3 4 5 |
# File 'lib/cloudist/core_ext/module.rb', line 2 def remove_possible_method(method) remove_method(method) rescue NameError end |