Module: Flex::Deprecation

Extended by:
Deprecation
Included in:
Deprecation
Defined in:
lib/flex/deprecation.rb

Defined Under Namespace

Modules: Module

Instance Method Summary collapse

Instance Method Details

#warn(old, new, called = 1) ⇒ Object



7
8
9
10
11
# 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