Module: Sequel::Plugins::InvertedSubsets::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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

Define a not_ prefixed subset which inverts the subset condition.



41
42
43
44
# File 'lib/sequel/plugins/inverted_subsets.rb', line 41

def subset(name, *args, &block)
  super
  def_dataset_method(@inverted_subsets_name_block.call(name)){exclude(*args, &block)}
end