# File lib/mechanize/page.rb, line 58 def title @title ||= if doc = parser title = doc.search('title').inner_text title.empty? ? nil : title end end