Sequence provides a unified api for access to sequential data types, like Strings, Arrays, Files, IOs, and Enumerations. This is the external iterator pattern (ruby's usual iterators are internal). 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, and reading and writing data (with or without moving the position) forward or backward from the current position or anywhere. Its perhaps most unusual feature is the ability to scan for Regexps in not just Strings, but Files and any other type of sequence.
Required Ruby Version
>= 0
Authors
Caleb Clausen
Versions
-
0.2.4
-
source
- 0.2.4 source August 12, 2016 (70 KB)
-
-
0.2.3
-
source
- 0.2.3 source January 03, 2010 (59 KB)
-
-
0.2.2
-
source
- 0.2.2 source August 07, 2009 (59.5 KB)
-
-
0.2.1
-
source
- 0.2.1 source August 05, 2009 (58.5 KB)
-
-
0.2.0
-
source
- 0.2.0 source August 28, 2008This gem version was imported to RubyGems.org on July 25, 2009. The date displayed was specified by the author in the gemspec. (57.5 KB)
-