Skip to content

Instantly share code, notes, and snippets.

@spanuska
Last active March 29, 2016 21:50
Show Gist options
  • Save spanuska/31e4482023132d95d26a to your computer and use it in GitHub Desktop.
Save spanuska/31e4482023132d95d26a to your computer and use it in GitHub Desktop.
class Shelf
...
def store(book)
length = book.length
width = book.width
depth = book.depth
# logic to find the nearest spot that can accomodate the given dimensions
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment