Created
May 16, 2010 23:10
-
-
Save chrismytton/403243 to your computer and use it in GitHub Desktop.
For when you just don't know what to do
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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