class SyntaxTree::SymbolContent
SymbolContent
represents symbol contents and is always the child of a SymbolLiteral
node.
:symbol
Attributes
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 10546 def initialize(value:, location:) @value = value @location = location end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 10572 def ===(other) other.is_a?(SymbolContent) && value === other.value end
Source
# File lib/syntax_tree/node.rb, line 10551 def accept(visitor) visitor.visit_symbol_content(self) end
Source
# File lib/syntax_tree/node.rb, line 10555 def child_nodes [] end
Also aliased as: deconstruct
Source
# File lib/syntax_tree/node.rb, line 10559 def copy(value: nil, location: nil) SymbolContent.new( value: value || self.value, location: location || self.location ) end
Source
# File lib/syntax_tree/node.rb, line 10568 def deconstruct_keys(_keys) { value: value, location: location } end