Module: Alexandria::Console
- Defined in:
- lib/alexandria/console.rb
Class Method Summary collapse
Class Method Details
.list_books_on_console ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/alexandria/console.rb', line 9 def self.list_books_on_console collection = Alexandria::LibraryCollection.instance collection.reload libraries = collection.all_regular_libraries output_string = "" @books = libraries.flatten @books.each do |book| = book..join(" & ") output_string += [book.title, ].join(", ") + "\n" end output_string end |