Class: SyntaxTree::EmbExprBeg
- Inherits:
-
Object
- Object
- SyntaxTree::EmbExprBeg
- Defined in:
- lib/syntax_tree.rb
Overview
EmbExprBeg represents the beginning token for using interpolation inside of a parent node that accepts string content (like a string or regular expression).
"Hello, #{person}!"
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
- Location
-
the location of this node.
-
#value ⇒ Object
readonly
- String
-
the #{ used in the string.
Instance Method Summary collapse
-
#initialize(value:, location:) ⇒ EmbExprBeg
constructor
A new instance of EmbExprBeg.
Constructor Details
#initialize(value:, location:) ⇒ EmbExprBeg
Returns a new instance of EmbExprBeg.
5575 5576 5577 5578 |
# File 'lib/syntax_tree.rb', line 5575 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
5573 5574 5575 |
# File 'lib/syntax_tree.rb', line 5573 def location @location end |
#value ⇒ Object (readonly)
- String
-
the #{ used in the string
5570 5571 5572 |
# File 'lib/syntax_tree.rb', line 5570 def value @value end |