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
value[R]
- String
-
the beginning of the body of the lambda literal
Public Class Methods
new(value:, location:)
click to toggle source
# File lib/syntax_tree/node.rb, line 10786 def initialize(value:, location:) @value = value @location = location end
Public Instance Methods
===(other)
click to toggle source
# File lib/syntax_tree/node.rb, line 10812 def ===(other) other.is_a?(TLamBeg) && value === other.value end
accept(visitor)
click to toggle source
# File lib/syntax_tree/node.rb, line 10791 def accept(visitor) visitor.visit_tlambeg(self) end
child_nodes()
click to toggle source
# File lib/syntax_tree/node.rb, line 10795 def child_nodes [] end
Also aliased as: deconstruct
copy(value: nil, location: nil)
click to toggle source
# File lib/syntax_tree/node.rb, line 10799 def copy(value: nil, location: nil) TLamBeg.new( value: value || self.value, location: location || self.location ) end
deconstruct_keys(_keys)
click to toggle source
# File lib/syntax_tree/node.rb, line 10808 def deconstruct_keys(_keys) { value: value, location: location } end