Class: SyntaxTree::TLamBeg
- Inherits:
-
Object
- Object
- SyntaxTree::TLamBeg
- Defined in:
- lib/syntax_tree.rb
Overview
TLamBeg represents the beginning of the body of a lambda literal using braces.
-> { value }
In the example above the TLamBeg represents the { operator.
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
- Location
-
the location of this node.
-
#value ⇒ Object
readonly
- String
-
the beginning of the body of the lambda literal.
Instance Method Summary collapse
-
#initialize(value:, location:) ⇒ TLamBeg
constructor
A new instance of TLamBeg.
Constructor Details
#initialize(value:, location:) ⇒ TLamBeg
Returns a new instance of TLamBeg.
11791 11792 11793 11794 |
# File 'lib/syntax_tree.rb', line 11791 def initialize(value:, location:) @value = value @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
- Location
-
the location of this node
11789 11790 11791 |
# File 'lib/syntax_tree.rb', line 11789 def location @location end |
#value ⇒ Object (readonly)
- String
-
the beginning of the body of the lambda literal
11786 11787 11788 |
# File 'lib/syntax_tree.rb', line 11786 def value @value end |