# File lib/Dnsruby/resource/NSEC.rb, line 76
      def self.get_types(t)
        types = nil
        if (t.instance_of?Array)
          # from the wire, already decoded

          types =t
        elsif (t.instance_of?String)
          if t[t.length-1, t.length]!=")"
            t = t + " )"
          end
          # List of mnemonics

          types=[]
          mnemonics = t.split(" ")
          mnemonics.pop
          mnemonics.each do |m|
            type = Types.new(m)
            types.push(type)
          end
        else
          raise DecodeError.new("Unknown format of types for Dnsruby::RR::NSEC")
        end
        return types
      end