fetch

fetch(name, default=PStore::Error) Instance Public methods This method is just like #[], save that you may also provide a default value for the object. In the event the specified name is not found in the data store, your default will be returned instead. If you do not specify a default, PStore::Error will be raised if the object is not found. WARNING: This method is only valid in a #transaction. It will raise PStore::Error if called at any other time.

path

path() Instance Public methods Returns the path to the data store file.

root?

root?(name) Instance Public methods Returns true if the supplied name is currently in the data store. WARNING: This method is only valid in a #transaction. It will raise PStore::Error if called at any other time.

roots

roots() Instance Public methods Returns the names of all object hierarchies currently in the store. WARNING: This method is only valid in a #transaction. It will raise PStore::Error if called at any other time.

transaction

transaction(read_only = false) Instance Public methods Opens a new transaction for the data store. Code executed inside a block passed to this method may read and write data to and from the data store file. At the end of the block, changes are committed to the data store automatically. You may exit the transaction early with a call to either #commit or #abort. See those methods for details about how changes are handled. Raising an uncaught Exception in the block is equivalent t

new

new(tag) Class Public methods

[]

[](k) Instance Public methods

[]=

[]=(k, v) Instance Public methods Also aliased as: add

add

add(k, v) Instance Public methods Alias for: []=

map

map(tag = @tag, style = @style) Instance Public methods Emit a map. The coder will be yielded to the block.