Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/vapir-common/external/core_extensions.rb
Instance Method Summary collapse
Instance Method Details
#alias_deprecated(to, from) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/vapir-common/external/core_extensions.rb', line 2 def alias_deprecated(to, from) define_method to do |*args| if !respond_to?(:config) || config.warn_deprecated Kernel.warn_with_caller "DEPRECATION WARNING: #{self.class.name}\##{to} is deprecated. Please use #{self.class.name}\##{from}" end send(from, *args) end end |