Tom Molesworth > EntityModel-Class-0.012 > EntityModel::Hash

Download:
EntityModel-Class-0.012.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.012   Source   Latest Release: EntityModel-Class-0.015

NAME ^

EntityModel::Hash - wrapper object for dealing with hashrefs

VERSION ^

version 0.012

DESCRIPTION ^

Primarily intended as an abstract interface for use with EntityModel backend storage.

METHODS ^

new

Instantiates with the given hashref.

count

Returns the number of items in the hashref (i.e. keys).

list

Returns all values from the hashref.

set

Sets an entry (identified by key) to the given value.

erase

Deletes the given key from the hashref.

get

Retrieves the value for the given key.

hashref

Returns the contained hashref.

exists

Returns true if the given key exists in the hashref.

keys

Returns a list of all keys.

clear

Clears the hashref.

is_empty

Returns true if there's nothing in the hashref.

AUTHOR ^

Tom Molesworth <cpan@entitymodel.com>

LICENSE ^

Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.

syntax highlighting: