vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/message/message.rb
#  Return the first rrset of the specified attributes in the message
Return the first rrset of the specified attributes in the message
Return the first rrset of the specified attributes in the message
def rrset(name, type, klass = Classes::IN)
      [@answer, @authority, @additional].each do |section|
        if (rrset = section.rrset(name, type, klass)).length > 0
          return rrset
        end
      end
      RRSet.new
    end
def rrset ( name , type , klass = Classes :: IN ) [ @answer , @authority , @additional ] . each do | section | if ( rrset = section . rrset ( name , type , klass ) ) . length > 0 return rrset end end RRSet . new end
Return the first rrset of the specified attributes in the message
Return the first rrset of the specified attributes in the message
name
<not_specific>
type
<not_specific>
klass
<not_specific>