Sha256: 254148e16064d9b79355e73cf91664ad4aed7de42fb178121b053b1d9e9fb09e

Contents?: true

Size: 214 Bytes

Versions: 1

Compression:

Stored size: 214 Bytes

Contents

# frozen_string_literal: true
class Hash
  # @param [Hash] other
  # @return [Boolean]
  def ===(other)
    return false unless other.is_a?(Hash)
    all? do |key, item|
      item === other[key]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
matchcase-0.1.0 lib/matchcase/hash.rb