Method: DNS::Message#initialize
- Defined in:
- lib/faildns/message.rb
#initialize(*args) ⇒ Message
Returns a new instance of Message.
63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/faildns/message.rb', line 63 def initialize (*args) if args.length > 1 @header, @questions, @answers, @authorities, @additionals = *(args.concat([[], [], [], []])) else raise ArgumentError.new('You have to pass at least 1 parameter.') end if block_given? yield self end end |