# 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 (index = t.index";") t = t[0, index] end if (index = t.index")") t = t[0, index] end # List of mnemonics types=[] mnemonics = t.split(" ") 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