# File lib/mechanize/http/agent.rb, line 327 def user_agent= user_agent @webrobots = nil if user_agent != @user_agent @user_agent = user_agent end