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