X-Git-Url: http://jaekl.net/gitweb/?p=quanlib.git;a=blobdiff_plain;f=book.rb;h=03a5f259beb0005d4250bd7988edab21729ba41d;hp=bfd3b250dcc358d958af23ff706f4e9065c049e8;hb=4b53af822cda819dd82d0d3e7ed066c2966ae4bf;hpb=93ad56f506f87af56145059fb8be9b35c5c61567 diff --git a/book.rb b/book.rb index bfd3b25..03a5f25 100644 --- a/book.rb +++ b/book.rb @@ -8,16 +8,18 @@ require 'cover' class Book @@DC_NS_URL = 'http://purl.org/dc/elements/1.1/' - def initialize(fileName) - #puts 'InitBook(' + fileName + ')' + def initialize @author = nil @cover = nil @description = nil - @path = fileName + @path = nil @series = nil @title = nil @volume = nil + end + def loadFromFile(fileName) + @path = fileName parseFileName!(fileName) end