def title
      return @title if @title
      if matches = class_const(:TITLE_RE).match(page)
        @title = matches[1].to_s.strip
        title_processor
        @title = decode_entities(@title)
      end
    end
def title
      return @title if @title
      if matches = class_const(:TITLE_RE).match(page)
        @title = matches[1].to_s.strip
        title_processor
        @title = decode_entities(@title)
      end
    end
The title method returns the title of the web page.

 It does the basic extraction using the TITLE_RE regular
 expression and handles text encoding.  More advanced parsing can
 be done by overriding the title_processor method.