Sha256: fbfffdcaccba2c4606a856e8cff72eb73531c03fc0ab06f7ef4b34693120e8c1
Contents?: true
Size: 297 Bytes
Versions: 2
Compression:
Stored size: 297 Bytes
Contents
module Redlander module StreamEnumerator include Enumerable def each if block_given? reset_stream while !stream.eos? yield stream.current stream.succ end else raise ::LocalJumpError.new("no block given") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redlander-0.3.2 | lib/redlander/stream_enumerator.rb~ |
redlander-0.3.1 | lib/redlander/stream_enumerator.rb~ |