Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#gameideaObject



3
4
5
6
7
8
9
10
11
# File 'lib/gameidea.rb', line 3

def gameidea
  data = YAML::load_file File.expand_path(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