Class: Runaround::MethodCall
- Inherits:
-
Struct
- Object
- Struct
- Runaround::MethodCall
- Defined in:
- lib/runaround/method_call.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#block ⇒ Object
Returns the value of attribute block.
-
#method ⇒ Object
Returns the value of attribute method.
-
#opts ⇒ Object
Returns the value of attribute opts.
-
#return_value ⇒ Object
Returns the value of attribute return_value.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
3 4 5 |
# File 'lib/runaround/method_call.rb', line 3 def args @args end |
#block ⇒ Object
Returns the value of attribute block
3 4 5 |
# File 'lib/runaround/method_call.rb', line 3 def block @block end |
#method ⇒ Object
Returns the value of attribute method
3 4 5 |
# File 'lib/runaround/method_call.rb', line 3 def method @method end |
#opts ⇒ Object
Returns the value of attribute opts
3 4 5 |
# File 'lib/runaround/method_call.rb', line 3 def opts @opts end |
#return_value ⇒ Object
Returns the value of attribute return_value
3 4 5 |
# File 'lib/runaround/method_call.rb', line 3 def return_value @return_value end |
Instance Method Details
#argsopts ⇒ Object
8 9 10 11 12 |
# File 'lib/runaround/method_call.rb', line 8 def argsopts argsopts = args ? args.dup : [] argsopts << opts if opts && !opts.empty? argsopts end |
#run_method ⇒ Object
4 5 6 |
# File 'lib/runaround/method_call.rb', line 4 def run_method Fiber.yield end |