Skip to content

Instantly share code, notes, and snippets.

@chrismytton
Created May 16, 2010 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrismytton/403243 to your computer and use it in GitHub Desktop.
Save chrismytton/403243 to your computer and use it in GitHub Desktop.
For when you just don't know what to do
module Idea
class Generator
def actions
@actions ||= %w{read write design contemplate}
end
def objects
@objects ||= ['code', 'books', 'art', 'poetry', 'blogs']
end
def action
actions[rand(actions.length)]
end
def object
objects[rand(objects.length)]
end
def generate
"You should #{action} some #{object}"
end
end
end
ig = Idea::Generator.new
puts ig.generate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment