lib/blobby/in_memory_store.rb in blobby-1.0.1 vs lib/blobby/in_memory_store.rb in blobby-1.1.0
- old
+ new
@@ -4,10 +4,14 @@
# A BLOB store backed by a Hash.
#
class InMemoryStore
+ def self.from_uri(_uri)
+ new
+ end
+
def initialize(hash = {})
@hash = hash
end
def available?
@@ -52,10 +56,10 @@
@hash[key] = content
nil
end
def delete
- !!@hash.delete(key)
+ !@hash.delete(key).nil?
end
end
end