lib/net/dns/rr/null.rb in net-dns-0.6.1 vs lib/net/dns/rr/null.rb in net-dns-0.7.0
- old
+ new
@@ -1,17 +1,17 @@
-module Net
+module Net # :nodoc:
module DNS
class RR
-
+
#------------------------------------------------------------
# RR type NULL
#------------------------------------------------------------
class NULL < RR
attr_reader :null
private
-
+
def build_pack
@null_pack = @null
@rdlength = @null_pack.size
end
@@ -20,11 +20,11 @@
end
def get_inspect
"#@null"
end
-
+
def subclass_new_from_hash(args)
if args.has_key? :null
@null = args[:null]
else
raise ArgumentError, ":null field is mandatory but missing"
@@ -37,18 +37,17 @@
def subclass_new_from_binary(data,offset)
@null = data[offset..offset+@rdlength]
return offset + @rdlength
end
-
+
private
-
+
def set_type
@type = Net::DNS::RR::Types.new("NULL")
end
-
- end # class NULL
-
- end # class RR
- end # module DNS
-end # module Net
+ end
+
+ end
+ end
+end