class Protobuf::Deprecation
Public Instance Methods
define_deprecated_methods(target_module, method_hash)
click to toggle source
# File lib/protobuf/deprecation.rb, line 20 def define_deprecated_methods(target_module, method_hash) target_module.module_eval do method_hash.each do |old_method, new_method| alias_method old_method, new_method end end deprecate_methods(target_module, method_hash) end