module FFaker::Game
Public Instance Methods
category()
click to toggle source
# File lib/ffaker/game.rb, line 15 def category fetch_sample(CATEGORY) end
mechanic()
click to toggle source
# File lib/ffaker/game.rb, line 19 def mechanic fetch_sample(MECHANIC) end
title()
click to toggle source
# 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
Private Instance Methods
simple_title()
click to toggle source
# File lib/ffaker/game.rb, line 25 def simple_title "#{fetch_sample(ADJ_AND_ADV)} #{fetch_sample(NOUNS)}" end
title_with_prefix()
click to toggle source
# File lib/ffaker/game.rb, line 29 def title_with_prefix "#{fetch_sample(PREFIXES)} #{simple_title}" end