class SyntaxTree::TLamBeg
TLamBeg
represents the beginning of the body of a lambda literal using braces.
-> { value }
In
the example above the TLamBeg
represents the +{+ operator.
Attributes
- String
-
the beginning of the body of the lambda literal
Public Class Methods
Source
# File lib/syntax_tree/node.rb, line 10801 def initialize(value:, location:) @value = value @location = location end
Public Instance Methods
Source
# File lib/syntax_tree/node.rb, line 10827 def ===(other) other.is_a?(TLamBeg) && value === other.value end
Source
# File lib/syntax_tree/node.rb, line 10806 def accept(visitor) visitor.visit_tlambeg(self) end
Source
# File lib/syntax_tree/node.rb, line 10810 def child_nodes [] end
Also aliased as: deconstruct
Source
# File lib/syntax_tree/node.rb, line 10814 def copy(value: nil, location: nil) TLamBeg.new( value: value || self.value, location: location || self.location ) end
Source
# File lib/syntax_tree/node.rb, line 10823 def deconstruct_keys(_keys) { value: value, location: location } end