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