Class: Decode::Language::Ruby::Function
- Inherits:
-
Method
- Object
- Symbol
- 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
Attributes inherited from Symbol
#kind, #language, #name, #parent
Instance Method Summary collapse
-
#arguments_node ⇒ Object
The node which contains the function arguments.
Methods inherited from Method
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_node ⇒ Object
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 |