Module: Sequel::Plugins::InvertedSubsets::ClassMethods
- Defined in:
- lib/sequel/plugins/inverted_subsets.rb
Instance Method Summary collapse
-
#subset(name, *args, &block) ⇒ Object
Define a not_ prefixed subset which inverts the subset condition.
Instance Method Details
#subset(name, *args, &block) ⇒ Object
Define a not_ prefixed subset which inverts the subset condition.
43 44 45 46 |
# File 'lib/sequel/plugins/inverted_subsets.rb', line 43 def subset(name, *args, &block) super def_dataset_method(@inverted_subsets_name_block.call(name)){exclude(*args, &block)} end |