Class: SyntaxTree::XString

Inherits:
Object
  • Object
show all
Defined in:
lib/syntax_tree.rb

Overview

XString represents the contents of an XStringLiteral.

`ls`

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parts:, location:) ⇒ XString



13426
13427
13428
13429
# File 'lib/syntax_tree.rb', line 13426

def initialize(parts:, location:)
  @parts = parts
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Location

the location of this node



13424
13425
13426
# File 'lib/syntax_tree.rb', line 13424

def location
  @location
end

#partsObject (readonly)

Array[ StringEmbExpr | StringDVar | TStringContent ]

the parts of the

xstring



13421
13422
13423
# File 'lib/syntax_tree.rb', line 13421

def parts
  @parts
end