Module: Cinch::Utilities::Deprecation Private
- Defined in:
- lib/cinch/utilities/deprecation.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Class Method Details
.print_deprecation(version, method, instead = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 14 15 |
# File 'lib/cinch/utilities/deprecation.rb', line 8 def self.print_deprecation(version, method, instead = nil) s = "Deprecation warning: Beginning with version #{version}, #{method} should not be used anymore." if !instead.nil? s << " Use #{instead} instead." end warn s warn caller end |