Sha256: db2b8bcbc72c1d9f0811c612a8c103cf6a898f5ce22f4533009f9e678e65ab02

Contents?: true

Size: 882 Bytes

Versions: 2

Compression:

Stored size: 882 Bytes

Contents

module Stages
  module Sugar
    def select(*args, &block)
      Select.new(*args, &block)
    end

    def each(*args, &block)
      Each.new(*args, &block)
    end

    def map(*args, &block)
      Map.new(*args, &block)
    end

    def wrap(*args, &block)
      Wrap.new(*args, &block)
    end

    def unique(*args, &block)
      Unique.new(*args, &block)
    end

    def run_until_exhausted(*args, &block)
      Exhaust.new(*args, &block)
    end

    def exhaust_and_count(*args, &block)
      ExhaustCount.new(*args, &block)
    end

    def group(*args, &block)
      Count.new
    end

    def emit(*args, &block)
      Emit.new(*args, &block)
    end

    def cache(*args, &block)
      Cache.new(*args, &block)
    end

    def feeder(*args, &block)
      Feeder.new(*args, &block)
    end

    def limit(*args, &block)
      Limit.new(*args, &block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stages-1.1.2 lib/sugar.rb
stages-1.1.1 lib/sugar.rb