Sha256: d06f536bec8575036671b2bf2a2275873ba4f1a798b1198f04da32af22360792

Contents?: true

Size: 813 Bytes

Versions: 3

Compression:

Stored size: 813 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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stages-1.0.1 lib/sugar.rb
stages-1.0.0 lib/sugar.rb
stages-0.4.1 lib/sugar.rb