Module: Buhos::StagesMixin

Instance Method Summary collapse

Instance Method Details

#get_stage_name(stage) ⇒ Object



59
60
61
# File 'lib/buhos/stages.rb', line 59

def get_stage_name(stage)
  Buhos::Stages.get_stage_name(stage)
end

#get_stages_idsObject



62
63
64
# File 'lib/buhos/stages.rb', line 62

def get_stages_ids
  Buhos::Stages::IDS
end

#get_stages_namesObject



65
66
67
# File 'lib/buhos/stages.rb', line 65

def get_stages_names
  Buhos::Stages::NAMES
end

#get_stages_names_tObject



68
69
70
# File 'lib/buhos/stages.rb', line 68

def get_stages_names_t
  Buhos::Stages::NAMES.inject({}) {|ac,v|  ac[v[0]]=I18n.t(v[1]);ac  }
end