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)
  message = "#{old} is deprecated in favour of #{new}, and will be removed in a next version "
  message << "(called at: #{caller[called]})" if called
  Conf.logger.warn message
end