Class: Refract::RescueNode
- Defined in:
- lib/refract/nodes/rescue_node.rb
Instance Attribute Summary collapse
-
#exceptions ⇒ Object
Returns the value of attribute exceptions.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#statements ⇒ Object
Returns the value of attribute statements.
-
#subsequent ⇒ Object
Returns the value of attribute subsequent.
Instance Method Summary collapse
-
#initialize(prism_node: nil, exceptions:, reference:, statements:, subsequent:) ⇒ RescueNode
constructor
A new instance of RescueNode.
Methods inherited from Node
#accept, #copy, #start_line, #type, type
Constructor Details
#initialize(prism_node: nil, exceptions:, reference:, statements:, subsequent:) ⇒ RescueNode
5 6 7 8 9 10 11 12 |
# File 'lib/refract/nodes/rescue_node.rb', line 5 def initialize(prism_node: nil, exceptions:, reference:, statements:, subsequent:) @prism_node = prism_node => Prism::Node | nil @exceptions = exceptions @reference = reference @statements = statements @subsequent = subsequent freeze end |
Instance Attribute Details
#exceptions ⇒ Object
Returns the value of attribute exceptions.
14 15 16 |
# File 'lib/refract/nodes/rescue_node.rb', line 14 def exceptions @exceptions end |
#reference ⇒ Object
Returns the value of attribute reference.
14 15 16 |
# File 'lib/refract/nodes/rescue_node.rb', line 14 def reference @reference end |
#statements ⇒ Object
Returns the value of attribute statements.
14 15 16 |
# File 'lib/refract/nodes/rescue_node.rb', line 14 def statements @statements end |
#subsequent ⇒ Object
Returns the value of attribute subsequent.
14 15 16 |
# File 'lib/refract/nodes/rescue_node.rb', line 14 def subsequent @subsequent end |