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