Class: Book

Inherits:
Object
  • Object
show all
Defined in:
lib/games_and_rpg_paradise/gui/gosu/books/book.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBook

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

#authorObject

Returns the value of attribute author.



12
13
14
# File 'lib/games_and_rpg_paradise/gui/gosu/books/book.rb', line 12

def author
  @author
end

#pagesObject

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

#publisherObject

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