Module: Sequel::Dataset::QueryBlockCopy

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

Overview

Module used by Dataset#query that has the effect of making all dataset methods into !-style methods that modify the receiver.

Instance Method Summary collapse

Instance Method Details

#clone(opts = {}) ⇒ Object

Merge the given options into the receiver’s options and return the receiver instead of cloning the receiver.



46
47
48
49
# File 'lib/sequel/extensions/query.rb', line 46

def clone(opts = {})
  @opts.merge!(opts)
  self
end