Module: Kernel
- Defined in:
- lib/data_bindings.rb
Overview
Instance Method Summary collapse
-
#define_singleton_method(*args, &block) ⇒ Object
Standard in ruby 1.9.
Instance Method Details
#define_singleton_method(*args, &block) ⇒ Object
Standard in ruby 1.9. See official documentation
14 15 16 17 18 |
# File 'lib/data_bindings.rb', line 14 def define_singleton_method(*args, &block) class << self self end.send(:define_method, *args, &block) end |