class SyntaxTree::SymBeg
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/syntax_tree/node.rbs class SyntaxTree::SymBeg < SyntaxTree::Node def initialize: (value: String, location: SyntaxTree::Location) -> void end
of the symbol including the %s and the delimiter.
contain “:‘” or “:"”. In the case of %s symbols, it will contain the start
above) it will contain just “:”. In the case of dynamic symbols it will
The value of this node is a string. In most cases (as in the first example
%s[symbol]
Finally, SymBeg is also used for symbols using the %s syntax, as in:
:“symbol”
SymBeg is also used for dynamic symbols, as in:
:symbol
SymBeg represents the beginning of a symbol literal.
def ===(other)
def ===(other) other.is_a?(SymBeg) && value === other.value end
def accept(visitor)
def accept(visitor) visitor.visit_symbeg(self) end
def child_nodes
def child_nodes [] end
def copy(value: nil, location: nil)
def copy(value: nil, location: nil) SymBeg.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:)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (value: String, location: SyntaxTree::Location) -> void
This signature was generated using 5 samples from 1 application.
def initialize(value:, location:) @value = value @location = location end