Class: Hash

Inherits:
Object show all
Defined in:
lib/sane_ruby/hash_hashes.rb

Overview

Instance Method Summary collapse

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:



8
9
10
# File 'lib/sane_ruby/hash_hashes.rb', line 8

def eql?(other)
  self == other
end

#hash ⇒ Object



4
5
6
# File 'lib/sane_ruby/hash_hashes.rb', line 4

def hash
  inject(0) {|hash,pair| hash ^ pair.hash}
end