# File lib/mechanize/history.rb, line 55 def shift return nil if length == 0 page = self[0] self[0] = nil super remove_from_index(page) page end