Method: Flex::Deprecation#warn
- Defined in:
- lib/flex/deprecation.rb
#warn(old, new, called = 1) ⇒ Object
7 8 9 10 11 |
# File 'lib/flex/deprecation.rb', line 7 def warn(old, new, called=1) = "#{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. " << "(called at: #{caller[called]})" if called Conf.logger.warn end |