# File lib/dnsruby/resource/NSEC3.rb, line 160
      def hash_alg=(a)
        if a.instance_of?(String)
          if a.length == 1
            a = a.to_i
          end
        end
        begin
          alg = Nsec3HashAlgorithms.new(a)
          @hash_alg = alg
        rescue ArgumentError => e
          raise DecodeError.new(e)
        end
      end