lib/spidr/page/html.rb
def each_meta_redirect
      return enum_for(__method__) unless block_given?

      if (html? && doc)
        search('//meta[@http-equiv and @content]').each do |node|
          if node.get_attribute('http-equiv') =~ /refresh/i
            content = node.get_attribute('content')

            if (redirect = content.match(/url=(\S+)$/))
              yield redirect[1]
            end
          end
        end
      end
    end
def each_meta_redirect
      return enum_for(__method__) unless block_given?

      if (html? && doc)
        search('//meta[@http-equiv and @content]').each do |node|
          if node.get_attribute('http-equiv') =~ /refresh/i
            content = node.get_attribute('content')

            if (redirect = content.match(/url=(\S+)$/))
              yield redirect[1]
            end
          end
        end
      end
    end
Enumerates over the meta-redirect links in the page.

 @yield [link]
   If a block is given, it will be passed every meta-redirect link
   from the page.

 @yieldparam [String] link
   A meta-redirect link from the page.

 @return [Enumerator]
   If no block is given, an enumerator object will be returned.

 @since 0.3.0