Sha256: 3edd53a9b993afe700349efeb649fb36e50f4f1a5d4130fbd308bdf425043eec
Contents?: true
Size: 530 Bytes
Versions: 9
Compression:
Stored size: 530 Bytes
Contents
# frozen_string_literal: true module FFakerTW 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
9 entries across 9 versions & 1 rubygems