# File lib/Dnsruby/resource/RRSIG.rb, line 102 def algorithm=(a) if (a.instance_of?String) if (a.length == 1) a = a.to_i end end begin alg = Algorithms.new(a) @algorithm = alg rescue ArgumentError => e raise DecodeError.new(e) end end