module Mechanize::CookieDeprecated
Private Instance Methods
__deprecated__(to = nil)
click to toggle source
# File lib/mechanize/cookie.rb, line 8 def __deprecated__(to = nil) $VERBOSE or return method = caller[0][/([^`]+)(?='$)/] to ||= method case self when Class lname = name[/[^:]+$/] klass = 'Mechanize::%s' % lname this = '%s.%s' % [klass, method] that = 'HTTP::%s.%s' % [lname, to] else lname = self.class.name[/[^:]+$/] klass = 'Mechanize::%s' % lname this = '%s#%s' % [klass, method] that = 'HTTP::%s#%s' % [lname, to] end warn '%s: The call of %s needs to be fixed to follow the new API (%s).' % [caller[1], this, that] end