lib/spidr/agent/events.rb
def every_rss_doc
      every_page do |page|
        if (block_given? && page.rss?)
          if (doc = page.doc)
            yield doc
          end
        end
      end
    end
def every_rss_doc
      every_page do |page|
        if (block_given? && page.rss?)
          if (doc = page.doc)
            yield doc
          end
        end
      end
    end
def every_rss_doc every_page do | page | if ( block_given? && page . rss? ) if ( doc = page . doc ) yield doc end end end end
Pass every RSS document that the agent parses to a given block.

 @yield [doc]
   The block will be passed every RSS document parsed.

 @yieldparam [Nokogiri::XML::Document] doc
   A parsed XML document.

 @see http://nokogiri.rubyforge.org/nokogiri/Nokogiri/XML/Document.html
Pass every RSS document that the agent parses to a given block .