Class: Cocoadex::Property
- Inherits:
-
NestedNodeElement
- Object
- Element
- NestedNodeElement
- Cocoadex::Property
- Defined in:
- lib/cocoadex/models/property.rb
Overview
A Cocoa API class property
Constant Summary collapse
- TEMPLATE_NAME =
:property
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.
-
#discussion ⇒ Object
readonly
Returns the value of attribute discussion.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(parent_class, node) ⇒ Property
constructor
A new instance of Property.
- #origin ⇒ Object
- #type ⇒ Object
Methods inherited from NestedNodeElement
Methods inherited from Element
#<=>, #parse_parameters, #print, #to_s
Methods included from Bri::Templates::Helpers
Constructor Details
#initialize(parent_class, node) ⇒ Property
Returns a new instance of Property.
10 11 12 13 14 15 |
# File 'lib/cocoadex/models/property.rb', line 10 def initialize parent_class, node @parent = parent_class @name = node.css("h3.method_property").first.text parse_properties(node) end |
Instance Attribute Details
#abstract ⇒ Object (readonly)
Returns the value of attribute abstract.
7 8 9 |
# File 'lib/cocoadex/models/property.rb', line 7 def abstract @abstract end |
#availability ⇒ Object (readonly)
Returns the value of attribute availability.
7 8 9 |
# File 'lib/cocoadex/models/property.rb', line 7 def availability @availability end |
#declaration ⇒ Object (readonly)
Returns the value of attribute declaration.
7 8 9 |
# File 'lib/cocoadex/models/property.rb', line 7 def declaration @declaration end |
#discussion ⇒ Object (readonly)
Returns the value of attribute discussion.
7 8 9 |
# File 'lib/cocoadex/models/property.rb', line 7 def discussion @discussion end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
7 8 9 |
# File 'lib/cocoadex/models/property.rb', line 7 def parent @parent end |
Instance Method Details
#origin ⇒ Object
17 18 19 |
# File 'lib/cocoadex/models/property.rb', line 17 def origin parent.to_s end |
#type ⇒ Object
21 22 23 |
# File 'lib/cocoadex/models/property.rb', line 21 def type "Property" end |