class SyntaxTree::EmbExprEnd
EmbExprEnd
represents the ending 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 5098 def initialize(value:, location:) @value = value @location = location end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 5124 def ===(other) other.is_a?(EmbExprEnd) && value === other.value end
Source
# File lib/syntax_tree/node.rb, line 5103 def accept(visitor) visitor.visit_embexpr_end(self) end
Source
# File lib/syntax_tree/node.rb, line 5107 def child_nodes [] end
Also aliased as: deconstruct
Source
# File lib/syntax_tree/node.rb, line 5111 def copy(value: nil, location: nil) EmbExprEnd.new( value: value || self.value, location: location || self.location ) end
Source
# File lib/syntax_tree/node.rb, line 5120 def deconstruct_keys(_keys) { value: value, location: location } end