Sha256: 9f6653bccd52068e39e987e0b3b24ba6289e3758ced51f81d535d6d3aa68c9dc
Contents?: true
Size: 210 Bytes
Versions: 2
Compression:
Stored size: 210 Bytes
Contents
class Hash # Checks if an 'hash' is a subset of the object #@param hash [Hash] pairs to verify #@return [Boolean] def include_pairs?(hash) hash.select { |k, v| k if self[k] != v }.empty? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hashtml-0.0.2 | lib/hashtml/hash.rb |
hashtml-0.0.1 | lib/hashtml/hash.rb |