Class

Tuple

Extends:

A tuple is the elementary object in Rinda programming. Tuples may be matched against templates if the tuple and the template are the same size.

Public Methods
[] Accessor method for elements of the tuple.
each Iterate through the tuple, yielding the index or key, and the value, thus ensuring arrays are iterated similarly to hashes.
fetch Fetches item k from the tuple.
new Creates a new Tuple from ary_or_hash which must be an Array or Hash.
size The number of elements in the tuple.
value Return the tuple itself
Private Methods
hash?
init_with_ary Munges ary into a valid Tuple.
init_with_hash Ensures hash is a valid Tuple.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.