Class: Melbourne::AST::SplatValue

Inherits:
Node
  • Object
show all
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

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

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

#valueObject

The actual value



13
14
15
# File 'lib/melbourne/ast/values.rb', line 13

def value
  @value
end