Sha256: 17f8b83484b7cf9b6af8d70f77ae3f5851ea0960b7717b68b8a113db45a620a0

Contents?: true

Size: 174 Bytes

Versions: 4

Compression:

Stored size: 174 Bytes

Contents

# frozen_string_literal: true

Hash.class_eval do
  unless method_defined?(:any_key?)
    # @see Enumerable#any?
    def any_key?(...)
      keys.any?(...)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ruby-rails-extensions-1.1.1 lib/ruby-rails-extensions/extensions/any_key.rb
ruby-rails-extensions-1.1.1.pre.rc.1 lib/ruby-rails-extensions/extensions/any_key.rb
ruby-rails-extensions-1.1.0 lib/ruby-rails-extensions/extensions/any_key.rb
ruby-rails-extensions-1.1.0.pre.rc.1 lib/ruby-rails-extensions/extensions/any_key.rb