Refactor page generations, and add hard-coded series naming.
[quanlib.git] / walkdir.rb
index ce1954ca7a11d27417afecf739af99fdbd98c83e..1dadd2e35b95974f81ad43366698c46b93dac7b9 100644 (file)
@@ -32,10 +32,10 @@ class WalkDir
     result = []
     for file in @files.sort
       if Book.canHandle?(file)
-        book = Book.new()
+        book = Book.new(@store)
         book.loadFromFile(file)
-        @store.store_book(book)
-        result.push(book)
+        id = @store.store_book(book)
+        result.push(id)
       end
     end
     return result