Sha256: 1a7b02874f6f3d800cfc71e0e0e9090819a3ff99ae14d80c2fc4c2cb2493f05a
Contents?: true
Size: 252 Bytes
Versions: 4
Compression:
Stored size: 252 Bytes
Contents
class Module def polonium_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
4 entries across 4 versions & 1 rubygems