vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/message/message.rb
#  Add a new Question to the Message. Takes either a Question,
#  or a name, and an optional type and class.
# 
# * msg.add_question(Question.new('example.com', 'MX'))
# * msg.add_question('example.com') # defaults to Types.A, Classes.IN
# * msg.add_question('example.com', Types.LOC)
Add a new Question to the Message. Takes either a Question,
or a name, and an optional type and class.


Add a new Question to the Message . Takes either a Question or a name and an optional type and class .
def add_question(question, type=Types.A, klass=Classes.IN)
      unless question.kind_of?(Question)
        question = Question.new(question, type, klass)
      end
      @question << question
      update_counts
    end
def add_question ( question , type = Types . A , klass = Classes . IN ) unless question . kind_of? ( Question ) question = Question . new ( question , type , klass ) end @question << question update_counts end
Add a new Question to the Message.
Add a new Question to the Message .
question
<not_specific>
type
<not_specific>
klass
<not_specific>