Class: Decode::Language::Ruby::Function
- Inherits:
-
Method
- Object
- Definition
- Method
- Decode::Language::Ruby::Function
- 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
-
#arguments_node ⇒ Object
The node which contains the function arguments.
- #nested_name ⇒ Object
Methods inherited from Method
#convert, #long_form, #qualified_form, #short_form
Methods inherited from Definition
#container?, #convert, #documentation, #initialize, #inspect, #location, #long_form, #multiline?, #nested?, #path, #path_name, #qualified_form, #qualified_name, #short_form, #start_with?, #text
Constructor Details
This class inherits a constructor from Decode::Definition
Instance Method Details
#arguments_node ⇒ Object
The node which contains the function arguments.
18 19 20 21 22 23 24 |
# File 'lib/decode/language/ruby/function.rb', line 18 def arguments_node if node = @node.children[2] if node.location.expression return node end end end |
#nested_name ⇒ Object
13 14 15 |
# File 'lib/decode/language/ruby/function.rb', line 13 def nested_name ".#{@name}" end |