projects
/
quanlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start support for reading data back from the database.
[quanlib.git]
/
book.rb
diff --git
a/book.rb
b/book.rb
index bfd3b250dcc358d958af23ff706f4e9065c049e8..03a5f259beb0005d4250bd7988edab21729ba41d 100644
(file)
--- a/
book.rb
+++ b/
book.rb
@@
-8,16
+8,18
@@
require 'cover'
class Book
@@DC_NS_URL = 'http://purl.org/dc/elements/1.1/'
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
@author = nil
@cover = nil
@description = nil
- @path =
fileName
+ @path =
nil
@series = nil
@title = nil
@volume = nil
@series = nil
@title = nil
@volume = nil
+ end
+ def loadFromFile(fileName)
+ @path = fileName
parseFileName!(fileName)
end
parseFileName!(fileName)
end