Method: StateFu::Methodical#__define_singleton_method
- Defined in:
- lib/support/methodical.rb
#__define_singleton_method(method_name, &block) ⇒ Object
10 11 12 13 14 |
# File 'lib/support/methodical.rb', line 10 def __define_singleton_method( method_name, &block ) (class << object; self; end).class_eval do define_method method_name, &block end end |