Module: Lab42::Console::Tools::ForwardToNewInstance
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, kwds, *args) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/lab42/console/tools/forward_to_new_instance.rb', line 5 def method_missing name, kwds, *args insm = instance_method(name) insm.bind(new(kwds)).(*args) rescue NameError super end |