class RenameParams::Converters::MethodConverter

Public Class Methods

new(method, context) click to toggle source
# File lib/rename_params/converters/method_converter.rb, line 4
def initialize(method, context)
  @method = method
  @context = context
end

Public Instance Methods

convert(value) click to toggle source
# File lib/rename_params/converters/method_converter.rb, line 9
def convert(value)
  @context.send(@method, value)
end