class SyntaxTree::EmbVar
@variable to be interpolated.
In the example above, an EmbVar node represents the # because it forces
“#@variable”
string or regular expression).
or global variable into a parent node that accepts string content (like a
EmbVar represents the use of shorthand interpolation for an instance, class,
def ===(other)
def ===(other) other.is_a?(EmbVar) && value === other.value end
def accept(visitor)
def accept(visitor) visitor.visit_embvar(self) end
def child_nodes
def child_nodes [] end
def copy(value: nil, location: nil)
def copy(value: nil, location: nil) EmbVar.new( value: value || self.value, location: location || self.location ) end
def deconstruct_keys(_keys)
def deconstruct_keys(_keys) { value: value, location: location } end
def initialize(value:, location:)
def initialize(value:, location:) @value = value @location = location end