class Protobuf::FieldDeprecation
Public Instance Methods
deprecate_method(target_module, method_name)
click to toggle source
this is a convenience deprecator for deprecated proto fields
# File lib/protobuf/deprecation.rb, line 39 def deprecate_method(target_module, method_name) deprecate_methods(target_module, method_name => target_module) end
Private Instance Methods
deprecated_method_warning(method_name, target_module)
click to toggle source
# File lib/protobuf/deprecation.rb, line 45 def deprecated_method_warning(method_name, target_module) "#{target_module.name}##{method_name} field usage is deprecated" end