Skip to content

Instantly share code, notes, and snippets.

@spanuska
Last active March 29, 2016 21:50
Embed
What would you like to do?
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