Class: Melbourne::AST::SplatAssignment
- Defined in:
- lib/melbourne/ast/variables.rb
Overview
Assignment to a splat (+*some+) as in:
*c = *[1, 2]
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
The value being assigned to the splat.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, value) ⇒ SplatAssignment
constructor
A new instance of SplatAssignment.
Methods inherited from Node
Constructor Details
#initialize(line, value) ⇒ SplatAssignment
Returns a new instance of SplatAssignment.
112 113 114 115 |
# File 'lib/melbourne/ast/variables.rb', line 112 def initialize(line, value) @line = line @value = value end |
Instance Attribute Details
#value ⇒ Object
The value being assigned to the splat
110 111 112 |
# File 'lib/melbourne/ast/variables.rb', line 110 def value @value end |