Class: SyntaxTree::TStringEnd
- Inherits:
-
Object
- Object
- SyntaxTree::TStringEnd
- Defined in:
- lib/syntax_tree.rb
Overview
TStringEnd represents the end of a string literal.
"string"
In the example above, TStringEnd represents the second set of quotes. Strings can also use single quotes. They can also be declared using the %q and %Q syntax, as in:
%q{string}
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
- Location
-
the location of this node.
-
#value ⇒ Object
readonly
- String
-
the end of the string.
Instance Method Summary collapse
-
#initialize(value:, location:) ⇒ TStringEnd
constructor
A new instance of TStringEnd.
Constructor Details
#initialize(value:, location:) ⇒ TStringEnd
Returns a new instance of TStringEnd.
12054 12055 12056 12057 |
# File 'lib/syntax_tree.rb', line 12054 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
12052 12053 12054 |
# File 'lib/syntax_tree.rb', line 12052 def location @location end |
#value ⇒ Object (readonly)
- String
-
the end of the string
12049 12050 12051 |
# File 'lib/syntax_tree.rb', line 12049 def value @value end |