Class: Hash
Instance Method Summary collapse
Instance Method Details
#include_pairs?(hash) ⇒ Boolean
5 6 7 8 9 10 11 |
# File 'lib/rstore/core_ext/hash.rb', line 5 def include_pairs? hash if hash.empty? return false else hash.all? { |key, val| self[key] == val } end end |