You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: html.rb
    path of file: ./repos/spidr/lib/spidr/page
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative '../extensions/uri'

require 'nokogiri'

module Spidr
  class Page
    include Enumerable

    #
    # The title of the HTML page.
    #
    # @return [String]
    #   The inner-text of the title element of the page.
    #
    def title
      if (node = at('//title'))
        node.inner_text
      end
    end

    #
    # Enumer
    
    def each_link(&block)
      return enum_for(__method__) unless block_given?

      each_redirect(&block) if is_redirect?

      if (html? && doc)
        doc.search('//a[@href[string()]]').each do |a|
          yield a.get_attribute('href')
        end

        doc.search('//frame[@src[string()]]').each do |iframe|
          yield iframe.get_attribute('src')
        end

        doc.search('//iframe[@src[string()]]').each do |iframe|
          yield iframe.get_attribute('src')
        end

        doc.search('//link[@href[string()]]').each do |link|
          yield link.get_attribute('href')
        end

        doc.search('//script[@src[string()]]').each do |script|
          yield script.get_attribute('src')
        end
      end
    end