class Devist::Tag

tags.rb This file is a part of the devist package. Halis Duraki <duraki.halis@nsoft.ba>

Model class `tags` is dynamic object that have parent `version` and is made of version tag info.

Public Class Methods

new() click to toggle source
# File lib/devist/models/tags.rb, line 19
def initialize
  @list = %w[added fixed removed improved]
  @change = Marray.new(@list.count)
end

Public Instance Methods

add(type, change) click to toggle source
# File lib/devist/models/tags.rb, line 24
def add (type, change)
  @change[@list.index(type)][@change[@list.index(type)].count] = change
end
get() click to toggle source
# File lib/devist/models/tags.rb, line 28
def get
  @change
end