Metastore

class
Superclass
Object
Included Modules
Thingfish::Normalization
Extended With
Pluggability
Strelka::AbstractClass

The base class for storage mechanisms used by Thingfish to store its data blobs.

Public Instance Methods

anchor
inspect()

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
anchor
transaction() { || ... }

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