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.

Since:

  • 2.0.0

Class Method Summary collapse

Class Method Details

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.

Since:

  • 2.0.0


6
7
8
9
10
11
12
13
# File 'lib/cinch/utilities/deprecation.rb', line 6

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
  $stderr.puts s
  $stderr.puts caller
end