class Hubkit::NotCollection
A collection that lets you perform the inverse of a filter @example
repo.issues.not.labeled('in progress')
Public Class Methods
new(base)
click to toggle source
# File lib/hubkit/chainable_collection.rb, line 88 def initialize(base) @base = base end
Public Instance Methods
method_missing(name, *args, &block)
click to toggle source
Any method of this class will be delegated down to the original ChainableCollection
. The result of the method will be a ChainableCollection
which contains all the elements not returned by the filter called. @param [String, Symbol] name the name of the method being called @param [Array] args the arguments to the method being called @yieldparam … the parameters of the any block given to the method
which is being called
@return [ChainableCollection] all elements which do not match the chained
filter in a new ChainableCollection
# File lib/hubkit/chainable_collection.rb, line 102 def method_missing(name, *args, &block) @base.wrap(@base - @base.send(name, *args, &block)) end