Skip to content

Instantly share code, notes, and snippets.

@seanrclayton
Created November 13, 2015 23:51
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 seanrclayton/8e3f6a683d0f4f4c112d to your computer and use it in GitHub Desktop.
Save seanrclayton/8e3f6a683d0f4f4c112d to your computer and use it in GitHub Desktop.
One of the great mysteries of Christianity is the concept of the Trinity. While there is only one God in Christianity, there are three "persons" (Father, Son, Holy Spirit) that still add up to one God.
Create a God class whose instances always add up to 1. This isn't as easy as it sounds! If you get stuck on a Fixnum coersion error, here's some good reading:
http://www.mutuallyhuman.com/blog/2011/01/25/class-coercion-in-ruby/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment