Class: SyntaxTree::Comma

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree.rb

Overview

Comma represents the use of the , operator.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, location:) ⇒ Comma

Returns a new instance of Comma.



3651
3652
3653
3654
# File 'lib/syntax_tree.rb', line 3651

def initialize(value:, location:)
  @value = value
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Location

the location of this node



3649
3650
3651
# File 'lib/syntax_tree.rb', line 3649

def location
  @location
end

#valueObject (readonly)

String

the comma in the string



3646
3647
3648
# File 'lib/syntax_tree.rb', line 3646

def value
  @value
end