Sha256: fd48091db660f3d73da70aa00a0262e6364f4684929b2bc53ef28b4610d3a21e

Contents?: true

Size: 1020 Bytes

Versions: 2

Compression:

Stored size: 1020 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

    def splice(*args, &block)
      Splice.new(*args, &block)
    end

    def noop(*args, &block)
      Noop.new(*args, &block)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stages-1.2.1 lib/sugar.rb
stages-1.2.0 lib/sugar.rb