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