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