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