Sha256: aa62d83f361e107fb0ceb2bf531a86df917a8e4638cca3481330afdc1952a5b8
Contents?: true
Size: 528 Bytes
Versions: 5
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true module FFaker module Game extend ModuleUtils extend self def title case rand(0..1) when 0 then simple_title when 1 then title_with_prefix end end def category fetch_sample(CATEGORY) end def mechanic fetch_sample(MECHANIC) end private def simple_title "#{fetch_sample(ADJ_AND_ADV)} #{fetch_sample(NOUNS)}" end def title_with_prefix "#{fetch_sample(PREFIXES)} #{simple_title}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ffaker-2.23.0 | lib/ffaker/game.rb |
ffaker-2.22.0 | lib/ffaker/game.rb |
ffaker-2.21.0 | lib/ffaker/game.rb |
ffaker-2.20.0 | lib/ffaker/game.rb |
ffaker-2.19.0 | lib/ffaker/game.rb |