Class Rinda::Tuple
In: lib/rinda/rinda.rb
Parent: Object

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.

Methods

[]   each   fetch   new   size   value  

Public Class methods

Creates a new Tuple from ary_or_hash which must be an Array or Hash.

Public Instance methods

Accessor method for elements of the tuple.

Iterate through the tuple, yielding the index or key, and the value, thus ensuring arrays are iterated similarly to hashes.

Fetches item k from the tuple.

The number of elements in the tuple.

Return the tuple itself

[Validate]

ruby-doc.org is a service of James Britt and Neurogami, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.