module Flex::Deprecation
Public Instance Methods
warn(old, new, called=1)
click to toggle source
# File lib/flex/deprecation.rb, line 7 def warn(old, new, called=1) message = "#{old} is deprecated in favour of #{new}, and will be removed in a next version. Please, read the upgrade notes at http://ddnexus.github.io/flex/doc/7-Tutorials/2-Migrate-from-0.x.html. " message << "(called at: #{caller[called]})" if called Conf.logger.warn message end