Skip to content

Instantly share code, notes, and snippets.

@nextacademy-private
Created August 31, 2014 09:08
Show Gist options
  • Save nextacademy-private/95f8ca95e5f181160fd6 to your computer and use it in GitHub Desktop.
Save nextacademy-private/95f8ca95e5f181160fd6 to your computer and use it in GitHub Desktop.
class BoggleBoard
def initialize
end
def shake!
end
# Defining to_s on an object controls how the object is
# represented as a string, e.g., when you pass it to puts
#
# Override this to print out a sensible board format so
# you can write code like:
#
# board = BoggleBoard.new
# board.shake!
# puts board
def to_s
"omg what is this? try printing me."
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment