Class: Cocoadex::Constant

Inherits:
Element
  • Object
show all
Defined in:
lib/cocoadex/models/constant.rb

Constant Summary collapse

TEMPLATE_NAME =
:constant

Instance Attribute Summary collapse

Attributes inherited from Element

#name

Instance Method Summary collapse

Methods inherited from Element

#<=>, #parse_parameters, #print, #to_s, #type

Methods included from Bri::Templates::Helpers

h3, inline_title, wrap

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

#descriptionObject (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

#originObject



37
38
39
# File 'lib/cocoadex/models/constant.rb', line 37

def origin
  @origin
end