Module: Rucoa::NodeConcerns::Rescue

Included in:
Rucoa::Nodes::BeginNode, Rucoa::Nodes::BlockNode, Rucoa::Nodes::DefNode
Defined in:
lib/rucoa/node_concerns/rescue.rb

Instance Method Summary collapse

Instance Method Details

#ensureRucoa::Nodes::EnsureNode?

Returns:



7
8
9
10
11
# File 'lib/rucoa/node_concerns/rescue.rb', line 7

def ensure
  return unless body.is_a?(Nodes::EnsureNode)

  body
end

#rescueRucoa::Nodes::RescueNode?

Returns:



14
15
16
17
18
# File 'lib/rucoa/node_concerns/rescue.rb', line 14

def rescue
  return unless body.is_a?(Nodes::RescueNode)

  body
end