Class: SyntaxTree::XString
- Inherits:
-
Object
- Object
- SyntaxTree::XString
- Defined in:
- lib/syntax_tree.rb
Overview
XString represents the contents of an XStringLiteral.
`ls`
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
- Location
-
the location of this node.
-
#parts ⇒ Object
readonly
- Array[ StringEmbExpr | StringDVar | TStringContent ]
-
the parts of the xstring.
Instance Method Summary collapse
-
#initialize(parts:, location:) ⇒ XString
constructor
A new instance of XString.
Constructor Details
#initialize(parts:, location:) ⇒ XString
Returns a new instance of XString.
13517 13518 13519 13520 |
# File 'lib/syntax_tree.rb', line 13517 def initialize(parts:, location:) @parts = parts @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
13515 13516 13517 |
# File 'lib/syntax_tree.rb', line 13515 def location @location end |
#parts ⇒ Object (readonly)
- Array[ StringEmbExpr | StringDVar | TStringContent ]
-
the parts of the
xstring
13512 13513 13514 |
# File 'lib/syntax_tree.rb', line 13512 def parts @parts end |