Class: Decode::Language::Ruby::Function

Inherits:
Method show all
Defined in:
lib/decode/language/ruby/function.rb

Overview

A Ruby-specific function.

Instance Attribute Summary

Attributes inherited from Definition

#comments

Attributes inherited from Symbol

#kind, #language, #name, #parent

Instance Method Summary collapse

Methods inherited from Method

#long_form, #short_form

Methods inherited from Definition

#container?, #documentation, #initialize, #long_form, #multiline?, #nested?, #qualified_form, #short_form, #text

Methods inherited from Symbol

#initialize, #inspect, #key, #lexical_path, #path, #qualified_name

Constructor Details

This class inherits a constructor from Decode::Definition

Instance Method Details

#arguments_nodeObject

The node which contains the function arguments.



29
30
31
32
33
34
35
# File 'lib/decode/language/ruby/function.rb', line 29

def arguments_node
	if node = @node.children[2]
		if node.location.expression
			return node
		end
	end
end