Class: Melbourne::AST::SplatValue
- Defined in:
- lib/melbourne/ast/values.rb
Overview
A value of a splat (+*some+) as in:
*1 # the value of the splat is 1
Instance Attribute Summary collapse
-
#value ⇒ Object
The actual value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, value) ⇒ SplatValue
constructor
A new instance of SplatValue.
Methods inherited from Node
Constructor Details
#initialize(line, value) ⇒ SplatValue
Returns a new instance of SplatValue.
15 16 17 18 |
# File 'lib/melbourne/ast/values.rb', line 15 def initialize(line, value) @line = line @value = value end |
Instance Attribute Details
#value ⇒ Object
The actual value
13 14 15 |
# File 'lib/melbourne/ast/values.rb', line 13 def value @value end |