Sha256: ce7a7a4cbabe5f8917ba49d48240fe7fbea9dcf7658b190b2ddffffe9018e85a

Contents?: true

Size: 268 Bytes

Versions: 15

Compression:

Stored size: 268 Bytes

Contents

module Stages
  class Resume < Stage    
    def input
      result = []
      while v = source.run
        result << v
      end
      continued = @source.reset
      if continued.nil?
        nil
      else
        { continued => result}
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
stages-0.3.4 lib/stages/resume.rb
stages-0.3.3 lib/stages/resume.rb
stages-0.3.2 lib/stages/resume.rb
stages-0.3.1 lib/stages/resume.rb
stages-0.3.0 lib/stages/resume.rb
stages-0.2.10 lib/stages/resume.rb
stages-0.2.9 lib/stages/resume.rb
stages-0.2.8 lib/stages/resume.rb
stages-0.2.7 lib/stages/resume.rb
stages-0.2.6 lib/stages/resume.rb
stages-0.2.5 lib/stages/resume.rb
stages-0.2.4 lib/stages/resume.rb
stages-0.2.3 lib/stages/resume.rb
stages-0.2.2 lib/stages/resume.rb
stages-0.2.1 lib/stages/resume.rb