Sha256: e46137e753c607e3620d57c9d10791b3edb1b8750b24471f7c1f714fad51ae71
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 Bytes
Contents
require "hamster/list" require "English" module Hamster module CoreExt module IO def to_list(sep = $INPUT_RECORD_SEPARATOR) Stream.new do line = gets(sep) if line Sequence.new(line, to_list) else EmptyList end end end end end end class IO include Hamster::CoreExt::IO end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hamster-1.0.1.pre.rc2 | lib/hamster/core_ext/io.rb |
hamster-1.0.1.pre.rc.1 | lib/hamster/core_ext/io.rb |