Class: Anaphora::MethodInvocation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



6
7
8
# File 'lib/anaphora.rb', line 6

def args
  @args
end

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



6
7
8
# File 'lib/anaphora.rb', line 6

def block
  @block
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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