Class: Cocoadex::Function
- Inherits:
-
SequentialNodeElement
- Object
- Element
- SequentialNodeElement
- Cocoadex::Function
- Defined in:
- lib/cocoadex/models/function.rb
Direct Known Subclasses
Constant Summary collapse
- TEMPLATE_NAME =
:method
Constants inherited from SequentialNodeElement
SequentialNodeElement::Abstract, SequentialNodeElement::Availability, SequentialNodeElement::Declaration, SequentialNodeElement::DeclaredIn, SequentialNodeElement::Discussion, SequentialNodeElement::ReturnValue, SequentialNodeElement::Special
Instance Attribute Summary collapse
-
#abstract ⇒ Object
readonly
Returns the value of attribute abstract.
-
#availability ⇒ Object
readonly
Returns the value of attribute availability.
-
#declaration ⇒ Object
readonly
Returns the value of attribute declaration.
-
#declared_in ⇒ Object
readonly
Returns the value of attribute declared_in.
-
#return_value ⇒ Object
readonly
Returns the value of attribute return_value.
Attributes inherited from Element
Instance Method Summary collapse
Methods inherited from SequentialNodeElement
Methods inherited from Element
#<=>, #origin, #parse_parameters, #print, #to_s
Methods included from Bri::Templates::Helpers
Constructor Details
This class inherits a constructor from Cocoadex::SequentialNodeElement
Instance Attribute Details
#abstract ⇒ Object (readonly)
Returns the value of attribute abstract.
4 5 6 |
# File 'lib/cocoadex/models/function.rb', line 4 def abstract @abstract end |
#availability ⇒ Object (readonly)
Returns the value of attribute availability.
4 5 6 |
# File 'lib/cocoadex/models/function.rb', line 4 def availability @availability end |
#declaration ⇒ Object (readonly)
Returns the value of attribute declaration.
4 5 6 |
# File 'lib/cocoadex/models/function.rb', line 4 def declaration @declaration end |
#declared_in ⇒ Object (readonly)
Returns the value of attribute declared_in.
4 5 6 |
# File 'lib/cocoadex/models/function.rb', line 4 def declared_in @declared_in end |
#return_value ⇒ Object (readonly)
Returns the value of attribute return_value.
4 5 6 |
# File 'lib/cocoadex/models/function.rb', line 4 def return_value @return_value end |
Instance Method Details
#discussion ⇒ Object
12 13 14 |
# File 'lib/cocoadex/models/function.rb', line 12 def discussion "" end |
#handle_node(node) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/cocoadex/models/function.rb', line 16 def handle_node node if node.classes.include? "parameters" parse_parameters(node) else logger.debug("Unhandled function property: #{node.classes} => #{node.text}") end end |
#parameters ⇒ Object
8 9 10 |
# File 'lib/cocoadex/models/function.rb', line 8 def parameters @parameters ||= [] end |
#type ⇒ Object
24 25 26 |
# File 'lib/cocoadex/models/function.rb', line 24 def type "Function" end |