Class Tuple
In: lib/facet/tuple.rb
Parent: Array

Tuple

A Tuple is essentially an Array that is also Comaparable.

Usage

  t1 = Tuple.new(1,2,3)
  t2 = Tuple.new(2,3,4)

  t1 > t2   #=> false
  t2 > t1   #=> true

Note

This class probably needs some enhancements to be truly considered a Tuple. For instance, should a Tuple by multiton?

Methods

new  

Included Modules

Comparable

Public Class methods

[Validate]