Method: Sequel::Dataset#with_row_proc

Defined in:
lib/sequel/dataset/query.rb

#with_row_proc(callable) ⇒ Object

Returns a cloned dataset with the given row_proc.

ds = DB[:items]
ds.all # => [{:id=>2}]
ds.with_row_proc(:invert.to_proc).all # => [{2=>:id}]


1268
1269
1270
# File 'lib/sequel/dataset/query.rb', line 1268

def with_row_proc(callable)
  clone(:row_proc=>callable)
end