Class: Anaphora::MethodInvocation
- Inherits:
-
Struct
- Object
- Struct
- Anaphora::MethodInvocation
- Defined in:
- lib/anaphora.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#block ⇒ Object
Returns the value of attribute block.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
6 7 8 |
# File 'lib/anaphora.rb', line 6 def args @args end |
#block ⇒ Object
Returns the value of attribute block
6 7 8 |
# File 'lib/anaphora.rb', line 6 def block @block end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/anaphora.rb', line 6 def name @name end |
Instance Method Details
#send_to(target) ⇒ Object
7 8 9 |
# File 'lib/anaphora.rb', line 7 def send_to(target) target.send(name, *args, &block) end |