From fdec41cd77b54d7840887c39af738108d02aa2e9 Mon Sep 17 00:00:00 2001 From: Chris Jaekl Date: Mon, 8 Jul 2019 20:07:08 -0400 Subject: [PATCH] Use attr_reader for Cover.path. --- cover.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cover.rb b/cover.rb index 9b97484..e74c27b 100644 --- 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 -- 2.39.2