lib/net/dns/rr/srv.rb in net-dns-0.5.3 vs lib/net/dns/rr/srv.rb in net-dns-0.6.0
- old
+ new
@@ -1,14 +1,5 @@
-##
-#
-# Net::DNS::RR::SRV
-#
-# $Id$
-#
-##
-
-
module Net
module DNS
class RR
#------------------------------------------------------------
@@ -22,14 +13,10 @@
def build_pack
str = ""
end
- def set_type
- @type = Net::DNS::RR::Types.new("SRV")
- end
-
def subclass_new_from_binary(data,offset)
off_end = offset + @rdlength
@priority, @weight, @port = data.unpack("@#{offset} n n n")
offset+=6
@@ -42,16 +29,20 @@
@host << str
end
@host=@host.join(".")
offset
end
-
-
- end # class SRV
- end # class RR
+ private
- end # module DNS
-end # module Net
+ def set_type
+ @type = Net::DNS::RR::Types.new("SRV")
+ end
+
+ end
+ end
+
+ end
+end