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.

doc_ruby_on_rails
2015-04-29 00:51:42
Comments
Leave a Comment

Please login to continue.