Class: Cocoadex::Constant
- Defined in:
- lib/cocoadex/models/constant.rb
Constant Summary collapse
- TEMPLATE_NAME =
:constant
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(origin, name, description) ⇒ Constant
constructor
A new instance of Constant.
- #origin ⇒ Object
Methods inherited from Element
#<=>, #parse_parameters, #print, #to_s, #type
Methods included from Bri::Templates::Helpers
Constructor Details
#initialize(origin, name, description) ⇒ Constant
Returns a new instance of Constant.
32 33 34 35 |
# File 'lib/cocoadex/models/constant.rb', line 32 def initialize origin, name, description @origin = origin @name, @description = name, description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
30 31 32 |
# File 'lib/cocoadex/models/constant.rb', line 30 def description @description end |
Instance Method Details
#origin ⇒ Object
37 38 39 |
# File 'lib/cocoadex/models/constant.rb', line 37 def origin @origin end |