# File lib/net/dns/header.rb, line 159 def initialize(code) if (0..10).include? code @code = code @type = RCodeType[code] @explanation = RCodeErrorString[code] else raise ArgumentError, "RCode `#{code}' out of range" end end