Class: Faker::App
Constant Summary
Constants inherited
from Base
Base::Letters, Base::Numbers, Base::ULetters
Class Method Summary
collapse
Methods inherited from Base
bothify, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, respond_to_missing?, sample, shuffle, translate, unique, with_locale
Class Method Details
.author ⇒ Object
12
13
14
|
# File 'lib/faker/app.rb', line 12
def author
parse('app.author')
end
|
.name ⇒ Object
4
5
6
|
# File 'lib/faker/app.rb', line 4
def name
fetch('app.name')
end
|
.semantic_version(major: 0..9, minor: 0..9, patch: 1..9) ⇒ Object
16
17
18
|
# File 'lib/faker/app.rb', line 16
def semantic_version(major: 0..9, minor: 0..9, patch: 1..9)
[major, minor, patch].map { |chunk| sample(Array(chunk)) }.join('.')
end
|
.version ⇒ Object
8
9
10
|
# File 'lib/faker/app.rb', line 8
def version
parse('app.version')
end
|