Module: FFaker::Game
Instance Method Summary
collapse
const_missing, k, luhn_check, underscore, unique
#fetch_sample, #rand, #shuffle
Instance Method Details
#category ⇒ Object
15
16
17
|
# File 'lib/ffaker/game.rb', line 15
def category
fetch_sample(CATEGORY)
end
|
#mechanic ⇒ Object
19
20
21
|
# File 'lib/ffaker/game.rb', line 19
def mechanic
fetch_sample(MECHANIC)
end
|
#title ⇒ Object
8
9
10
11
12
13
|
# File 'lib/ffaker/game.rb', line 8
def title
case rand(0..1)
when 0 then simple_title
when 1 then title_with_prefix
end
end
|