Sha256: c0dacc0f6129f23d3eebf987f2b3d141c150fab08c128ce92e84d449f14be168
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
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 def get_data @null_pack end def get_inspect @null.to_s end def subclass_new_from_hash(args) if args.key? :null @null = args[:null] else raise ArgumentError, ":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] offset + @rdlength end private def set_type @type = Net::DNS::RR::Types.new("NULL") end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
gitlab-net-dns-0.10.0 | lib/net/dns/rr/null.rb |
gitlab-net-dns-0.9.2 | lib/net/dns/rr/null.rb |
gitlab-net-dns-0.9.1 | lib/net/dns/rr/null.rb |
net-dns-0.9.0 | lib/net/dns/rr/null.rb |