Class: ASTree::PrettyNode::CALL

Inherits:
ASTree::PrettyNode show all
Defined in:
lib/astree/pretty_node/call.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
8
9
# File 'lib/astree/pretty_node/call.rb', line 2

def label_name(index)
  case index
  when 1
    'method id'
  when 2
    'arguments'
  end
end