Sha256: 2e053eb4404244f9fa69152815343f06a2ac2f60e03b80ec8b5b9c6e9d1d8ee6
Contents?: true
Size: 295 Bytes
Versions: 15
Compression:
Stored size: 295 Bytes
Contents
# require 'pry' module HotDateRails::Utils def deprecate(*dep_mtds, new_mtd) dep_mtds.each do |dep_mtd| define_method(dep_mtd) do |*args, &block| # warn "Warning: #{dep_mtd}() is deprecated. In the future please use #{new_mtd}()." send(new_mtd, *args, &block) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems