# File lib/net/dns/rr/types.rb, line 85
        def self.valid?(type)
          case type
            when String
              TYPES.has_key?(type)
            when Fixnum
              TYPES.invert.has_key?(type)
            else
              raise ArgumentError, "Wrong type class: #{type.class}"
          end
        end