Class: Async::MethodCatcher
- Inherits:
-
Object
- Object
- Async::MethodCatcher
- Defined in:
- lib/async.rb
Instance Attribute Summary collapse
-
#_args ⇒ Object
readonly
Returns the value of attribute _args.
-
#_method_name ⇒ Object
readonly
Returns the value of attribute _method_name.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
8 9 10 11 |
# File 'lib/async.rb', line 8 def method_missing(method_name, *args) @_method_name = method_name @_args = args end |
Instance Attribute Details
#_args ⇒ Object (readonly)
Returns the value of attribute _args.
7 8 9 |
# File 'lib/async.rb', line 7 def _args @_args end |
#_method_name ⇒ Object (readonly)
Returns the value of attribute _method_name.
7 8 9 |
# File 'lib/async.rb', line 7 def _method_name @_method_name end |