-
-
Save nextacademy-private/95f8ca95e5f181160fd6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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