Class: SyntaxTree::RParen

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

Overview

RParen represents the use of a right parenthesis, i.e., ).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, location:) ⇒ RParen

Returns a new instance of RParen.



10706
10707
10708
10709
# File 'lib/syntax_tree.rb', line 10706

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

Instance Attribute Details

#locationObject (readonly)

Location

the location of this node



10704
10705
10706
# File 'lib/syntax_tree.rb', line 10704

def location
  @location
end

#valueObject (readonly)

String

the parenthesis



10701
10702
10703
# File 'lib/syntax_tree.rb', line 10701

def value
  @value
end