Sha256: 18d1c65154072ab1be1f94d0ef2ff72d259d3fcb5ed0b5966e766af096980f7a

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 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

4 entries across 4 versions & 1 rubygems

Version Path
hot_date_rails-1.5.4 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.3 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.2 lib/hot_date_rails/utils.rb
hot_date_rails-1.4.1 lib/hot_date_rails/utils.rb