Class: FactoryHelper::App

Inherits:
Base
  • Object
show all
Defined in:
lib/factory-helper/app.rb

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, fetch, flexible, letterify, method_missing, numerify, parse, rand_in_range, regexify, translate

Class Method Details

.authorObject



18
19
20
# File 'lib/factory-helper/app.rb', line 18

def author
  parse('app.author')
end

.nameObject



6
7
8
# File 'lib/factory-helper/app.rb', line 6

def name
  fetch('app.name')
end

.versionObject



10
11
12
13
14
15
16
# File 'lib/factory-helper/app.rb', line 10

def version
  if parse('app.version') == ""
    numerify(fetch('app.version'))
  else
    parse('app.version')
  end
end