class SyntaxTree::EmbExprBeg
EmbExprBeg
represents the beginning token for using interpolation inside of a parent node that accepts string content (like a string or regular expression).
"Hello, #{person}!"
Attributes
- String
-
the #{ used in the string
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 5057 def initialize(value:, location:) @value = value @location = location end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 5083 def ===(other) other.is_a?(EmbExprBeg) && value === other.value end
Source
# File lib/syntax_tree/node.rb, line 5062 def accept(visitor) visitor.visit_embexpr_beg(self) end
Source
# File lib/syntax_tree/node.rb, line 5066 def child_nodes [] end
Also aliased as: deconstruct
Source
# File lib/syntax_tree/node.rb, line 5070 def copy(value: nil, location: nil) EmbExprBeg.new( value: value || self.value, location: location || self.location ) end
Source
# File lib/syntax_tree/node.rb, line 5079 def deconstruct_keys(_keys) { value: value, location: location } end