module Gemmy::Patches::ArrayPatch::InstanceMethods::AnyNot
Public Instance Methods
any_not?(&blk)
click to toggle source
checks if any of the results of an array do not respond truthily to a block
For example, to check if any items of an array are truthy:
[false, nil, ''].any_not? &:blank? => false
# File lib/gemmy/patches/array_patch.rb, line 248 def any_not?(&blk) any? { |item| ! blk.call(item) } end