Skip to content

Instantly share code, notes, and snippets.

@jmmastey
Last active August 29, 2015 14:05
Show Gist options
  • Save jmmastey/f088a45e2e6a518e9c55 to your computer and use it in GitHub Desktop.
Save jmmastey/f088a45e2e6a518e9c55 to your computer and use it in GitHub Desktop.
def philosophize(thinker, thoughts)
raise ArgumentError unless thinker.is_a? Philosopher
thoughts = [thoughts] unless thoughts.kind_of? Array
thoughts.map do |thought|
thinker.think(thought)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment