Method: Safe::SafeHash#==

Defined in:
lib/safestruct/safe_hash.rb

#==(other) ⇒ Object Also known as: eql?



86
87
88
89
90
91
92
# File 'lib/safestruct/safe_hash.rb', line 86

def ==( other )
  if other.is_a?( self.class )                    ## note: must be same hash class
    @h == other.instance_variable_get( '@h' )    ## compare "wrapped" hash
  else
    false
  end
end