Sha256: 1f7720c26b74a0bc64fdec9cbcc52f2240ac05a7b2d22b2f9de5b52b7e95c38a

Contents?: true

Size: 271 Bytes

Versions: 4

Compression:

Stored size: 271 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stages-0.2.0 lib/stages/resume.rb
stages-0.1.2 lib/stages/resume.rb
stages-0.1.1 lib/stages/resume.rb
stages-0.1.0 lib/stages/resume.rb