Method: Sequel::Plugins::SubsetConditions::DatasetModuleMethods#exclude

Defined in:
lib/sequel/plugins/subset_conditions.rb

#exclude(name, *args, &block) ⇒ Object

Also create a method that returns the conditions the filter uses.

[View source]

67
68
69
70
71
72
# File 'lib/sequel/plugins/subset_conditions.rb', line 67

def exclude(name, *args, &block)
  super
  cond = args
  cond = cond.first if cond.size == 1
  define_method(:"#{name}_conditions"){Sequel.~(filter_expr(cond, &block))}
end