class SyntaxTree::QSymbolsBeg
(e.g., %i| or %i<).
these kinds of arrays can start with a lot of different delimiter types
In the snippet above, QSymbolsBeg represents the “%i[” token. Note that
%i[one two three]
QSymbolsBeg represents the beginning of a symbol literal array.
def ===(other)
def ===(other) other.is_a?(QSymbolsBeg) && value === other.value end
def accept(visitor)
def accept(visitor) visitor.visit_qsymbols_beg(self) end
def child_nodes
def child_nodes [] end
def copy(value: nil, location: nil)
def copy(value: nil, location: nil) QSymbolsBeg.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