Class: Devist::Version
- Inherits:
-
Object
- Object
- Devist::Version
- Defined in:
- lib/devist/models/version.rb
Overview
version.rb This file is a part of the devist package. Halis Duraki <[email protected]>
Model class ‘version` is dynamic object that creates a new changelog version instance with appropriate tag(s) data.
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version, date) ⇒ Version
constructor
A new instance of Version.
-
#tag(type, change) ⇒ Object
Create a new tag.
Constructor Details
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
10 11 12 |
# File 'lib/devist/models/version.rb', line 10 def date @date end |
#tags ⇒ Object
Returns the value of attribute tags.
10 11 12 |
# File 'lib/devist/models/version.rb', line 10 def @tags end |
#version ⇒ Object
Returns the value of attribute version.
10 11 12 |
# File 'lib/devist/models/version.rb', line 10 def version @version end |
Instance Method Details
#tag(type, change) ⇒ Object
Create a new tag.
19 20 21 |
# File 'lib/devist/models/version.rb', line 19 def tag (type, change) @tags.add(type, change) end |