Class: Book
- Inherits:
-
Object
- Object
- Book
- Defined in:
- lib/games_and_rpg_paradise/gui/gosu/books/book.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#pages ⇒ Object
Returns the value of attribute pages.
-
#publisher ⇒ Object
Returns the value of attribute publisher.
Instance Method Summary collapse
-
#initialize ⇒ Book
constructor
A new instance of Book.
Constructor Details
#initialize ⇒ Book
Returns a new instance of Book.
13 14 15 16 17 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/book.rb', line 13 def initialize @author = '' @publisher = '' @pages = [] end |
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author.
12 13 14 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/book.rb', line 12 def @author end |
#pages ⇒ Object
Returns the value of attribute pages.
12 13 14 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/book.rb', line 12 def pages @pages end |
#publisher ⇒ Object
Returns the value of attribute publisher.
12 13 14 |
# File 'lib/games_and_rpg_paradise/gui/gosu/books/book.rb', line 12 def publisher @publisher end |