Sha256: 80b96227f03437c701952a46916caa5811d59323e947e06f2e10f2e10450149d
Contents?: true
Size: 649 Bytes
Versions: 107
Compression:
Stored size: 649 Bytes
Contents
module Fog module Deprecation def deprecate(older, newer) module_eval <<-EOS, __FILE__, __LINE__ def #{older}(*args) Fog::Logger.deprecation("#{self} => ##{older} is deprecated, use ##{newer} instead [light_black](#{caller.first})[/]") send(:#{newer}, *args) end EOS end def self_deprecate(older, newer) module_eval <<-EOS, __FILE__, __LINE__ def self.#{older}(*args) Fog::Logger.deprecation("#{self} => ##{older} is deprecated, use ##{newer} instead [light_black](#{caller.first})[/]") send(:#{newer}, *args) end EOS end end end
Version data entries
107 entries across 107 versions & 19 rubygems