Class: AbstractSyntaxTreeKit::Node::DEFINED
- Inherits:
-
AbstractSyntaxTreeKit::Node
- Object
- AbstractSyntaxTreeKit::Node
- AbstractSyntaxTreeKit::Node::DEFINED
- Defined in:
- lib/astkit/node/defined.rb
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Attributes inherited from AbstractSyntaxTreeKit::Node
#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type
Instance Method Summary collapse
-
#initialize(node:, expression:) ⇒ DEFINED
constructor
A new instance of DEFINED.
Constructor Details
#initialize(node:, expression:) ⇒ DEFINED
Returns a new instance of DEFINED.
6 7 8 9 |
# File 'lib/astkit/node/defined.rb', line 6 def initialize(node:, expression:) super(node) @expression = expression end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
4 5 6 |
# File 'lib/astkit/node/defined.rb', line 4 def expression @expression end |