Sha256: 2023bd54370d27607aeee22284ad0962f19119401afda9e0b880942374c30ff9

Contents?: true

Size: 414 Bytes

Versions: 5

Compression:

Stored size: 414 Bytes

Contents

module Alf
  module Sequel
    #
    # Specialization of Alg::Iterator to work on a Sequel dataset
    #
    class Iterator
      include Alf::Iterator

      # Creates an iterator instance
      def initialize(dataset)
        @dataset = dataset
      end

      # (see Alf::Iterator#each)
      def each
        @dataset.each(&Proc.new)
      end

    end # class Iterator
  end # module Sequel
end # module Alf

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.12.2 lib/alf-sequel/alf/sequel/iterator.rb
alf-0.12.1 lib/alf-sequel/alf/sequel/iterator.rb
alf-0.12.0 lib/alf-sequel/alf/sequel/iterator.rb
alf-0.11.1 lib/alf-sequel/alf/sequel/iterator.rb
alf-0.11.0 lib/alf-sequel/alf/sequel/iterator.rb