Method: Resolv::DNS::Resource#==

Defined in:
lib/net/dns/resolv.rb

#==(other) ⇒ Object



1481
1482
1483
1484
1485
1486
# File 'lib/net/dns/resolv.rb', line 1481

def ==(other)
  return self.class == other.class &&
    self.instance_variables == other.instance_variables &&
    self.instance_variables.collect {|name| self.instance_eval name} ==
      other.instance_variables.collect {|name| other.instance_eval name}
end