Class: Async::MethodCatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/async.rb

Instance Attribute Summary collapse

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

#_argsObject (readonly)

Returns the value of attribute _args.



7
8
9
# File 'lib/async.rb', line 7

def _args
  @_args
end

#_method_nameObject (readonly)

Returns the value of attribute _method_name.



7
8
9
# File 'lib/async.rb', line 7

def _method_name
  @_method_name
end