Class: LibRubyParser::Nodes::Dstr
- Inherits:
-
LibRubyParser::Node
- Object
- LibRubyParser::Node
- LibRubyParser::Nodes::Dstr
- Defined in:
- lib/lib-ruby-parser/nodes.rb
Overview
Represents a string with interpolation (i.e. "#{foo}"
)
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}"
~
%Q{#{foo}}
~~~
1212 1213 1214 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1212 def begin_l @begin_l end |
#end_l ⇒ Loc? (readonly)
Location of the string end
"#{foo}"
~
%Q{#{foo}}
~
1224 1225 1226 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1224 def end_l @end_l end |
#expression_l ⇒ Loc (readonly)
Location of the full expression
"#{foo}"
~~~~~~~~
%Q{#{foo}}
~~~~~~~~~~
1236 1237 1238 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1236 def expression_l @expression_l end |
#parts ⇒ ::Array<Node> (readonly)
A list of string parts (static literals and interpolated expressions)
1200 1201 1202 |
# File 'lib/lib-ruby-parser/nodes.rb', line 1200 def parts @parts end |