Class: ASTree::PrettyNode::RESCUE

Inherits:
ASTree::PrettyNode show all
Defined in:
lib/astree/pretty_node/rescue.rb

Instance Attribute Summary

Attributes inherited from ASTree::PrettyNode

#node

Instance Method Summary collapse

Methods inherited from ASTree::PrettyNode

#element_value, #initialize, #stringify_element

Constructor Details

This class inherits a constructor from ASTree::PrettyNode

Instance Method Details

#label_name(index) ⇒ Object



2
3
4
5
6
7
# File 'lib/astree/pretty_node/rescue.rb', line 2

def label_name(index)
  case index
  when 2
    'next clause'
  end
end