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.



10630
10631
10632
10633
# File 'lib/syntax_tree.rb', line 10630

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

Instance Attribute Details

#locationObject (readonly)

Location

the location of this node



10628
10629
10630
# File 'lib/syntax_tree.rb', line 10628

def location
  @location
end

#valueObject (readonly)

String

the parenthesis



10625
10626
10627
# File 'lib/syntax_tree.rb', line 10625

def value
  @value
end