Class: Melbourne::AST::SplatAssignment

Inherits:
Node
  • Object
show all
Defined in:
lib/melbourne/ast/variables.rb

Overview

Assignment to a splat (+*some+) as in:

*c = *[1, 2]

Direct Known Subclasses

SplatArray, SplatWrapped

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

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

#valueObject

The value being assigned to the splat



110
111
112
# File 'lib/melbourne/ast/variables.rb', line 110

def value
  @value
end