lib/zonesync/record.rb in zonesync-0.1.1 vs lib/zonesync/record.rb in zonesync-0.1.2

- old
+ new

@@ -23,8 +23,20 @@ type, record.ttl, rdata, ) end + + def <=> other + to_sortable <=> other.to_sortable + end + + def to_sortable + [type, name, rdata, ttl] + end + + def to_s + values.join(" ") + end end end