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