lib/alexandria/console.rb in alexandria-book-collection-manager-0.7.9 vs lib/alexandria/console.rb in alexandria-book-collection-manager-0.7.10
- old
+ new
@@ -3,17 +3,17 @@
# This file is part of Alexandria.
#
# See the file README.md for authorship and licensing information.
module Alexandria
- def self.list_books_on_console(_title = true, authors = true)
+ 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_authors = book.authors.join(" & ") if authors
+ book_authors = book.authors.join(" & ")
output_string += [book.title, book_authors].join(", ") + "\n"
end
output_string
end
end