lib/review/book/image_finder.rb in review-1.3.0 vs lib/review/book/image_finder.rb in review-1.4.0
- old
+ new
@@ -23,9 +23,16 @@
def get_entries
Dir.glob(File.join(@basedir, "**/*.*"))
end
+ def add_entry(path)
+ unless @entries.include?(path)
+ @entries << path
+ end
+ @entries
+ end
+
def find_path(id)
targets = target_list(id)
targets.each do |target|
@exts.each do |ext|
if @entries.include?("#{target}#{ext}")