Class: LibRubyParser::Nodes::Xstr
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Xstr
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents an executable string (i.e. `sh #{script_name}`
)
Instance Attribute Summary collapse
-
#begin_l ⇒ Loc
readonly
Location of the string begin.
-
#end_l ⇒ Loc
readonly
Location of the string end.
-
#expression_l ⇒ Loc
readonly
Location of the full expression.
-
#parts ⇒ ::Array<Node>
readonly
A list of string parts (static literals and interpolated expressions).
Instance Attribute Details
#begin_l ⇒ Loc (readonly)
Location of the string begin
`#{foo}`
~
%X{#{foo}}
~~~
4361 4362 4363 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4361 def begin_l @begin_l end |
#end_l ⇒ Loc (readonly)
Location of the string end
`#{foo}`
~
%X{#{foo}}
~
4373 4374 4375 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4373 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
`#{foo}`
~~~~~~~~
%X{#{foo}}
~~~~~~~~~~
4385 4386 4387 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4385 def expression_l @expression_l end |
#parts ⇒ ::Array<Node> (readonly)
A list of string parts (static literals and interpolated expressions)
4349 4350 4351 |
# File 'lib/lib-ruby-parser/nodes.rb', line 4349 def parts @parts end |