Sha256: 054b37a274b7417031318a5bf8c5d2d858f80c0a559d2dbd6362942a27079fe7
Contents?: true
Size: 252 Bytes
Versions: 5
Compression:
Stored size: 252 Bytes
Contents
class Module #:nodoc: def deprecate(old_method_name, new_method_name) define_method old_method_name do |*args| warn "#{old_method_name} is deprecated. Use #{new_method_name} instead." __send__(new_method_name, *args) end end end
Version data entries
5 entries across 5 versions & 1 rubygems