RubyGems Navigation menu

sequence 0.2.3

Sequence provides a unified api for access to sequential data types, like Strings, Arrays, Files, IOs, and Enumerations. Each sequence encapsulates some data and a current position within it. Some operations apply to data at (or relative to) the position, others are independant of position. The api contains operations for moving the position, reading and writing data (with or without moving the position) forward or backward from the current position or anywhere, 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.


  1. 0.2.3 - January 3, 2010 (59 KB)
  2. 0.2.2 - August 5, 2009 (59.5 KB)
  3. 0.2.1 - July 6, 2009 (58.5 KB)
  4. 0.2.0 - August 28, 2008 (57.5 KB)
  5. 0.1.0 - October 5, 2006 (57 KB)


  • Caleb Clausen



Total downloads 7,777

For this version 2,593

Required Ruby Version: None



gem 'sequence', '~> 0.2.3' = Copy to clipboard Copied!

gem install sequence = Copy to clipboard Copied!