Class: Devist::Tag
- Inherits:
-
Object
- Object
- Devist::Tag
- Defined in:
- lib/devist/models/tags.rb
Overview
tags.rb This file is a part of the devist package. Halis Duraki <[email protected]>
Model class ‘tags` is dynamic object that have parent `version` and is made of version tag info.
Instance Method Summary collapse
- #add(type, change) ⇒ Object
- #get ⇒ Object
-
#initialize ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
Instance Method Details
#add(type, change) ⇒ Object
24 25 26 |
# File 'lib/devist/models/tags.rb', line 24 def add (type, change) @change[@list.index(type)][@change[@list.index(type)].count] = change end |
#get ⇒ Object
28 29 30 |
# File 'lib/devist/models/tags.rb', line 28 def get @change end |