Class: SyntaxTree::RBracket

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

Overview

RBracket represents the use of a right bracket, i.e., ].

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, location:) ⇒ RBracket

Returns a new instance of RBracket.



9767
9768
9769
9770
# File 'lib/syntax_tree.rb', line 9767

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

Instance Attribute Details

#locationObject (readonly)

Location

the location of this node



9765
9766
9767
# File 'lib/syntax_tree.rb', line 9765

def location
  @location
end

#valueObject (readonly)

String

the right bracket



9762
9763
9764
# File 'lib/syntax_tree.rb', line 9762

def value
  @value
end