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

Version Path
hot_date_rails-2.0.2 lib/hot_date_rails/utils.rb
hot_date_rails-2.0.1 lib/hot_date_rails/utils.rb
hot_date_rails-2.0.0 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.18 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.17 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.16 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.14 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.13 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.12 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.11 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.10 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.9 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.8 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.7 lib/hot_date_rails/utils.rb
hot_date_rails-1.5.6 lib/hot_date_rails/utils.rb