Top Level Namespace
Instance Method Summary collapse
Instance Method Details
#gameidea ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/gameidea.rb', line 3 def gameidea data = YAML::load_file File.(File.join(File.dirname(__FILE__), "data.yml")) who = data['Who'].sample where = data['Where'].sample what = data['What'].sample return { :who => who, :where => where, :what => what } end |