Squirrel::Template::Expr::WrapHash - virtual method wrapper for hashes
somehash.size somehash.keys somehash.values somehash.list somehash.delete(key) somehash.aKey somehash.set(key, value) somearray.is_list # always false somearray.is_hash # always true
Provides virtual methods for hashes.
Return the numbers of keys in the hash.
Return a list of the keys in the hash.
Return a list of the values in the hash. The order of the elements of the lists returned by keys and values correspond.
Return a list of hashes each containing a key and value containing the key and value for each element of the hash.
Delete a given key from the hash, returning the value that was at that key.
Set entry key
to value
. Returns value
.
Test if this object is a list. Always false for a hash.
Test if this object is a hash. Always true for a hash.
Test if this object is a code object. Always false for a hash.
the Squirrel::Template::Expr manpage, the Squirrel::Template manpage
Tony Cook <tony@develop-help.com>