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

Returns a new instance of XString.



12916
12917
12918
12919
# File 'lib/syntax_tree.rb', line 12916

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

Instance Attribute Details

#locationObject (readonly)

Location

the location of this node



12914
12915
12916
# File 'lib/syntax_tree.rb', line 12914

def location
  @location
end

#partsObject (readonly)

Array[ StringEmbExpr | StringDVar | TStringContent ]

the parts of the

xstring



12911
12912
12913
# File 'lib/syntax_tree.rb', line 12911

def parts
  @parts
end