Class: Sequel::Postgres::Dataset

Inherits:
Object
  • Object
show all
Defined in:
lib/theusual/sequel.rb

Instance Method Summary collapse

Instance Method Details

#each(&block) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/theusual/sequel.rb', line 6

def each &block
  block ||=
    Proc.new do |row|
      Enumerator.new do |e|
        e.yield row
      end
    end

  super &block
end