# File lib/dnsruby/resource/RR.rb, line 23 def <=>(other) # return 1 if ((!other) || !(other.name) || !(other.type)) # return -1 if (!@name) if @name.canonical == other.name.canonical @type.code != other.type.code ? (@type.code <=> other.type.code) : (@rdata <=> other.rdata) else @name <=> other.name end end