RubyGems Navigation menu

sequence 0.2.0

A unified wrapper api for accessing data in Strings, Arrays, Files, IOs, and Enumerations. Each sequence encapsulates some data and a current position within it. There are methods for moving the position, reading and writing data (with or without moving the position) forward or backward from the current position (or anywhere at all), scanning for patterns (like StringScanner, but it works in Files too, among others), and saving a position that will remain valid even after data is deleted or inserted elsewhere within the sequence. There are also some utility classes for making sequences reversed or circular, turning one-way sequences into two-way, buffering, and making sequences that are subsets or aggregations of existing sequences.

Gemfile:
=

install:
=

Versions:

  1. 0.2.4 August 12, 2016 (70 KB)
  2. 0.2.3 January 03, 2010 (59 KB)
  3. 0.2.2 August 07, 2009 (59.5 KB)
  4. 0.2.1 August 05, 2009 (58.5 KB)
  5. 0.2.0 August 28, 2008* (57.5 KB)
Show all versions (6 total)

Runtime Dependencies (1):

hoe >= 1.5.1

Owners:

Authors:

  • Caleb Clausen

SHA 256 checksum:

=

Total downloads 22,011

For this version 3,418

Version Released:

Licenses:

N/A

Required Ruby Version: > 0.0.0

Links: