Sha256: f77e4babf00453146e5f02cf56c73564309150f7be69b715f4cd87f67dce47c0

Contents?: true

Size: 180 Bytes

Versions: 4

Compression:

Stored size: 180 Bytes

Contents

# frozen_string_literal: true

Hash.class_eval do
  unless method_defined?(:any_value?)
    # @see Enumerable#any?
    def any_value?(...)
      values.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_value.rb
ruby-rails-extensions-1.1.1.pre.rc.1 lib/ruby-rails-extensions/extensions/any_value.rb
ruby-rails-extensions-1.1.0 lib/ruby-rails-extensions/extensions/any_value.rb
ruby-rails-extensions-1.1.0.pre.rc.1 lib/ruby-rails-extensions/extensions/any_value.rb