class Thingfish::Datastore
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/datastore.rb, line 39 def inspect return "#<%p:%#016x>" % [ self.class, self.object_id * 2 ] end
transaction() { || ... }
click to toggle source
Provide transactional consistency to the provided block. Concrete datastores should override this if they can implement it. By default it's a no-op.
# File lib/thingfish/datastore.rb, line 49 def transaction yield end