Class: Refract::RescueNode

Inherits:
Node
  • Object
show all
Defined in:
lib/refract/nodes/rescue_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exceptionsObject

Returns the value of attribute exceptions.



14
15
16
# File 'lib/refract/nodes/rescue_node.rb', line 14

def exceptions
  @exceptions
end

#referenceObject

Returns the value of attribute reference.



14
15
16
# File 'lib/refract/nodes/rescue_node.rb', line 14

def reference
  @reference
end

#statementsObject

Returns the value of attribute statements.



14
15
16
# File 'lib/refract/nodes/rescue_node.rb', line 14

def statements
  @statements
end

#subsequentObject

Returns the value of attribute subsequent.



14
15
16
# File 'lib/refract/nodes/rescue_node.rb', line 14

def subsequent
  @subsequent
end