support/ruby/collins-client/lib/collins/option.rb
# Inverse of `filter` operation.
#
# Returns this option if it is non-empty *and* applying the predicate to this option returns
# false. Otherwise return `None`.
#
# @see #filter
# @return [Option<Object>]
Inverse of `filter` operation.
Returns this option if it is non-empty *and* applying the predicate to this option returns
false. Otherwise return `None`.
Inverse of ` filter ` operation . Returns this option if it is non - empty * and * applying the predicate to this option returns false . Otherwise return ` None ` .
def filter_not &predicate
      if empty? || !predicate.call(get) then
        self
      else
        None.new
      end
    end
def filter_not & predicate if empty? || ! predicate . call ( get ) then self else None . new end end
Inverse of `filter` operation.
Inverse of ` filter ` operation .
None
Option<Object>
predicate
see
None