Skip to content

Instantly share code, notes, and snippets.

@monstaro
Created July 30, 2019 02:26
Show Gist options
  • Save monstaro/5282703a9af495863ffe7ed15ebed963 to your computer and use it in GitHub Desktop.
Save monstaro/5282703a9af495863ffe7ed15ebed963 to your computer and use it in GitHub Desktop.
Class & Methods
Class Book
attributes
Table_of_Contents (boolean)
Page_Count (integer)
Author (string)
Copyright_year (integer)
Book_Open (boolean)
*note, we did have 'release year (repressings) but realized that would probably be better as an array.
Methods:
turn_page (page_count)
open_book (book_open true)
close_book (book_open false)
add_intro ('author')
skip_to_chapterX (table_of_contents)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment