class Thingfish::Metastore
The base class for storage mechanisms used by Thingfish
to store its data blobs.
Public Instance Methods
inspect()
click to toggle source
Return a representation of the object as a String suitable for debugging.
# File lib/thingfish/metastore.rb, line 37 def inspect return "#<%p:%#016x %d objects>" % [ self.class, self.object_id * 2, self.size ] end
transaction() { || ... }
click to toggle source
Provide transactional consistency to the provided block. Concrete metastores should override this if they can implement it. By default it's a no-op.
# File lib/thingfish/metastore.rb, line 48 def transaction yield end