projects
/
quanlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add `arrived` attribute (file creation timestamp) to books table.
[quanlib.git]
/
cover.rb
diff --git
a/cover.rb
b/cover.rb
index 5cc80a0f24930027dddd82f8b51ec50348d7f1c0..e74c27ba6cc42726f69804fd3ac3904b715aa5cc 100644
(file)
--- a/
cover.rb
+++ b/
cover.rb
@@
-1,7
+1,13
@@
class Cover
+ attr_reader :path
+
def initialize(inputStream, path, mimeType)
- @data = inputStream.read
+ if nil != inputStream
+ @data = inputStream.read
+ else
+ @data = nil
+ end
@path = path
@mimeType = mimeType
end