class SyntaxTree::XStringLiteral
‘ls`
XStringLiteral represents a string that gets executed.
def ===(other)
def ===(other) other.is_a?(XStringLiteral) && ArrayMatch.call(parts, other.parts) end
def accept(visitor)
def accept(visitor) visitor.visit_xstring_literal(self) end
def child_nodes
def child_nodes parts end
def copy(parts: nil, location: nil)
def copy(parts: nil, location: nil) node = XStringLiteral.new( parts: parts || self.parts, location: location || self.location ) node.comments.concat(comments.map(&:copy)) node end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { parts: parts, location: location, comments: comments } end
def format(q)
def format(q) q.text("`") q.format_each(parts) q.text("`") end
def initialize(parts:, location:)
def initialize(parts:, location:) @parts = parts @location = location @comments = [] end