Class: Melbourne::AST::SendWithArguments
- 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
Instance Attribute Summary collapse
-
#arguments ⇒ Object
The arguments that are passed.
Attributes inherited from Send
#block, #check_for_local, #name, #privately, #receiver, #variable
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, receiver, name, arguments, privately = false) ⇒ SendWithArguments
constructor
A new instance of SendWithArguments.
Methods inherited from Node
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
#arguments ⇒ Object
The arguments that are passed
48 49 50 |
# File 'lib/melbourne/ast/sends.rb', line 48 def arguments @arguments end |