Sha256: 195e856ccb14f6491e9e496ce5d4170406ce3aa51b2ad8f3ef8b2210f58343d3
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
# frozen_string_literal: true # This file is part of Alexandria. # # See the file README.md for authorship and licensing information. module Alexandria 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(" & ") output_string += [book.title, book_authors].join(", ") + "\n" end output_string end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alexandria-book-collection-manager-0.7.10 | lib/alexandria/console.rb |