Class: Melbourne::AST::SendWithArguments

Inherits:
Send
  • Object
show all
Defined in:
lib/melbourne/ast/sends.rb

Overview

A method invocation (a message being sent) where arguments are passed as in:

method(a, b)

Direct Known Subclasses

AttributeAssignment, ElementAssignment, Super, Yield

Instance Attribute Summary collapse

Attributes inherited from Send

#block, #check_for_local, #name, #privately, #receiver, #variable

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

Constructor Details

#initialize(line, receiver, name, arguments, privately = false) ⇒ SendWithArguments

Returns a new instance of SendWithArguments.



50
51
52
53
54
# File 'lib/melbourne/ast/sends.rb', line 50

def initialize(line, receiver, name, arguments, privately=false)
  super line, receiver, name, privately
  @block = nil
  @arguments = ActualArguments.new line, arguments
end

Instance Attribute Details

#argumentsObject

The arguments that are passed



48
49
50
# File 'lib/melbourne/ast/sends.rb', line 48

def arguments
  @arguments
end