class Faker::App
def author
-
(String)
-
def author parse('app.author') end
def name
-
(String)
-
def name fetch('app.name') end
def semantic_version(major: 0..9, minor: 0..9, patch: 1..9)
-
(String)
-
Parameters:
-
patch
(Integer, Range
) -- An integer to use or a range to pick the integer from. -
minor
(Integer, Range
) -- An integer to use or a range to pick the integer from. -
major
(Integer, Range
) -- An integer to use or a range to pick the integer from.
def semantic_version(major: 0..9, minor: 0..9, patch: 1..9) [major, minor, patch].map { |chunk| sample(Array(chunk)) }.join('.') end
def version
-
(String)
-
def version parse('app.version') end