Class: SyntaxTree::SymbolsBeg
- Inherits:
-
Object
- Object
- SyntaxTree::SymbolsBeg
- Defined in:
- lib/syntax_tree.rb
Overview
SymbolsBeg represents the start of a symbol array literal with interpolation.
%I[one two three]
In the snippet above, SymbolsBeg represents the “%I[” token. Note that these kinds of arrays can start with a lot of different delimiter types (e.g., %I| or %I<).
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
- Location
-
the location of this node.
-
#value ⇒ Object
readonly
- String
-
the beginning of the symbol literal array.
Instance Method Summary collapse
-
#initialize(value:, location:) ⇒ SymbolsBeg
constructor
A new instance of SymbolsBeg.
Constructor Details
#initialize(value:, location:) ⇒ SymbolsBeg
Returns a new instance of SymbolsBeg.
11716 11717 11718 11719 |
# File 'lib/syntax_tree.rb', line 11716 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
11714 11715 11716 |
# File 'lib/syntax_tree.rb', line 11714 def location @location end |
#value ⇒ Object (readonly)
- String
-
the beginning of the symbol literal array
11711 11712 11713 |
# File 'lib/syntax_tree.rb', line 11711 def value @value end |