Class: LibRubyParser::Nodes::Dstr

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents a string with interpolation (i.e. "#{foo}")

Instance Attribute Summary collapse

Instance Attribute Details

#begin_lLoc? (readonly)

Location of the string begin

"#{foo}"
~

%Q{#{foo}}
~~~

Returns:



1212
1213
1214
# File 'lib/lib-ruby-parser/nodes.rb', line 1212

def begin_l
  @begin_l
end

#end_lLoc? (readonly)

Location of the string end

"#{foo}"
       ~

%Q{#{foo}}
         ~

Returns:



1224
1225
1226
# File 'lib/lib-ruby-parser/nodes.rb', line 1224

def end_l
  @end_l
end

#expression_lLoc (readonly)

Location of the full expression

"#{foo}"
~~~~~~~~

%Q{#{foo}}
~~~~~~~~~~

Returns:



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)

Returns:



1200
1201
1202
# File 'lib/lib-ruby-parser/nodes.rb', line 1200

def parts
  @parts
end