projects
/
quanlib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b386f9
)
Use attr_reader for Cover.path.
author
Chris Jaekl
<chris@aphra.jaekl.net>
Tue, 9 Jul 2019 00:07:08 +0000
(20:07 -0400)
committer
Chris Jaekl
<chris@aphra.jaekl.net>
Tue, 9 Jul 2019 00:07:08 +0000
(20:07 -0400)
cover.rb
patch
|
blob
|
history
diff --git
a/cover.rb
b/cover.rb
index 9b974847d087a800518bdccd983f02bc63e4f59b..e74c27ba6cc42726f69804fd3ac3904b715aa5cc 100644
(file)
--- a/
cover.rb
+++ b/
cover.rb
@@
-1,5
+1,7
@@
class Cover
+ attr_reader :path
+
def initialize(inputStream, path, mimeType)
if nil != inputStream
@data = inputStream.read
@@
-10,10
+12,6
@@
class Cover
@mimeType = mimeType
end
- def path
- @path
- end
-
def inspect
info = []
if nil != @data