Method: Manana#method_missing
- Defined in:
- lib/manana.rb
#method_missing(method, *args, &block) ⇒ Object
Note:
Once the initialization block succeeds, it keeps the resulting object instance for subsequent method calls.
passes any method call through to the wrapped object after ensuring that the initialization block has successfully completed once (setting a valid instance of the object).
40 41 42 43 |
# File 'lib/manana.rb', line 40 def method_missing(method, *args, &block) instance = safe_get_instance instance.send(method, *args, &block); end |