Sha256: d71291c171b1a6c78e35fa51b54261135b7ee3388a2095d78da6af10fc420aa0

Contents?: true

Size: 844 Bytes

Versions: 12

Compression:

Stored size: 844 Bytes

Contents

= Tuple

Tuple provides fast, binary-sortable serialization for arrays of simple Ruby types. This
means you do not have to deserialize your tuples to store them. This leads to significant
performance benifits when using Tuples as keys for a BTree.

A Tuple is just an Array of any number of simple Ruby types. The following types are
supported (listed in ascending sort order):
  
1. NilClass
2. FalseClass
3. Integer (Fixnum or Bignum)
4. String
5. Symbol
6. True

== Usage:
   
  require 'tuple'

  data = Tuple.dump([1, -43, :foo, "bar", true, false, nil])
  => "\000\000\020\000\000\000\000\001..."
  Tuple.load(data)
  => [1, -43, :foo, "bar", true, false, nil]

== Install:

  sudo gem install ninjudd-tuple -s http://gems.github.com

== License:

Copyright (c) 2009 Justin Balthrop, Geni.com; Published under The MIT License, see LICENSE

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
ninjudd-tuple-0.0.10 README.rdoc
ninjudd-tuple-0.0.11 README.rdoc
ninjudd-tuple-0.0.2 README.rdoc
ninjudd-tuple-0.0.3 README.rdoc
ninjudd-tuple-0.0.4 README.rdoc
ninjudd-tuple-0.0.5 README.rdoc
ninjudd-tuple-0.0.6 README.rdoc
ninjudd-tuple-0.0.7 README.rdoc
ninjudd-tuple-0.1.0 README.rdoc
ninjudd-tuple-0.1.1 README.rdoc
tuple-0.1.2 README.rdoc
tuple-0.1.1 README.rdoc