lib/grumlin/repository/instance_methods.rb
def except(hash, *keys)
        return hash.except(*keys) if hash.respond_to?(:except)

        hash.each_with_object({}) do |(k, v), res|
          res[k] = v unless keys.include?(k)
        end
      end
# A polyfill for Hash#except for ruby 2.x environments without ActiveSupport
# TODO: delete and use native Hash#except after ruby 2.7 is deprecated.
A polyfill for Hash#except for ruby 2.x environments without ActiveSupport
TODO: delete and use native Hash#except after ruby 2.7 is deprecated.
A polyfill for Hash#except for ruby 2 . x environments without ActiveSupport TODO : delete and use native Hash#except after ruby 2 . 7 is deprecated .
def except(hash, *keys)
        return hash.except(*keys) if hash.respond_to?(:except)
        hash.each_with_object({}) do |(k, v), res|
          res[k] = v unless keys.include?(k)
        end
      end
def except ( hash , * keys ) return hash . except ( * keys ) if hash . respond_to? ( :except ) hash . each_with_object ( { } ) do | ( k , v ) , res | res [ k ] = v unless keys . include? ( k ) end end
A polyfill for Hash#except for ruby 2.x environments without ActiveSupport
TODO: delete and use native Hash#except after ruby 2.7 is deprecated.
A polyfill for Hash#except for ruby 2 . x environments without ActiveSupport TODO : delete and use native Hash#except after ruby 2 . 7 is deprecated .
hash
keys