Class: FactoryHelper::App
- Inherits:
-
Base
- Object
- Base
- FactoryHelper::App
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
.author ⇒ Object
18
19
20
|
# File 'lib/factory-helper/app.rb', line 18
def author
parse('app.author')
end
|
.name ⇒ Object
6
7
8
|
# File 'lib/factory-helper/app.rb', line 6
def name
fetch('app.name')
end
|
.version ⇒ Object
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
|