Class: LibRubyParser::Nodes::Xstr

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

Overview

Represents an executable string (i.e. “ ‘sh #script_name` “)

Instance Attribute Summary collapse

Instance Attribute Details

#begin_lLoc (readonly)

Location of the string begin

“‘text `#foo` ~

%X#{foo} ~~~ “‘

Returns:



4361
4362
4363
# File 'lib/lib-ruby-parser/nodes.rb', line 4361

def begin_l
  @begin_l
end

#end_lLoc (readonly)

Location of the string end

“‘text `#foo`

~

%X#{foo}

~

“‘

Returns:



4373
4374
4375
# File 'lib/lib-ruby-parser/nodes.rb', line 4373

def end_l
  @end_l
end

#expression_lLoc (readonly)

Location of the full expression

“‘text `#foo` ~~~~~~~~

%X#{foo} ~~~~~~~~~~ “‘

Returns:



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)

Returns:



4349
4350
4351
# File 'lib/lib-ruby-parser/nodes.rb', line 4349

def parts
  @parts
end