139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
# File 'lib/Dnsruby/resource/resource.rb', line 139
def ==(other)
return false unless other.instance_of?RRSet
return false if (other.sigs.length != self.sigs.length)
return false if (other.rrs.length != self.rrs.length)
return false if (other.ttl != self.ttl)
otherrrs = other.rrs
self.rrs.each {|rr|
return false if (!otherrrs.include?rr)
}
othersigs= other.sigs
self.sigs.each {|sig|
return false if (!othersigs.include?sig)
}
return true
end
|