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, #language, #name, #parent

Instance Method Summary collapse

Methods inherited from Method

#convert, #long_form, #short_form

Methods inherited from Definition

#container?, #convert, #documentation, #initialize, #long_form, #multiline?, #nested?, #path, #qualified_form, #qualified_name, #short_form, #start_with?, #text, #to_s

Constructor Details

This class inherits a constructor from Decode::Definition

Instance Method Details

#arguments_nodeObject

The node which contains the function arguments.



33
34
35
36
37
38
39
# File 'lib/decode/language/ruby/function.rb', line 33

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

#nested_nameObject



28
29
30
# File 'lib/decode/language/ruby/function.rb', line 28

def nested_name
	".#{@name}"
end