Sha256: d93871cdb7d4bd301845874bd9c05fb5919975072b392365d0b9c1d2de15d486
Contents?: true
Size: 1.2 KB
Versions: 13
Compression:
Stored size: 1.2 KB
Contents
## # # Net::DNS::RR::NULL # # $Id: NULL.rb,v 1.5 2006/07/28 07:33:36 bluemonk Exp $ # ## module Net 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 def set_type @type = Net::DNS::RR::RRTypes.new("NULL") end def get_data @null_pack end def get_inspect "#@null" end def subclass_new_from_hash(args) if args.has_key? :null @null = args[:null] else raise RRArgumentError, ":null field is mandatory but missing" end end def subclass_new_from_string(str) @null = str.strip end def subclass_new_from_binary(data,offset) @null = data[offset..offset+@rdlength] return offset + @rdlength end end # class NULL end # class RR end # module DNS end # module Net
Version data entries
13 entries across 13 versions & 2 rubygems