class ParamsReady::Value::GenericCoder

Public Class Methods

new(name) click to toggle source
# File lib/params_ready/value/coder.rb, line 66
def initialize(name)
  @name = name
  @coerce = nil
  @format = nil
  @type_identifier = nil
end

Public Instance Methods

coerce(input, context) click to toggle source
# File lib/params_ready/value/coder.rb, line 81
def coerce(input, context)
  @coerce[input, context]
end
finish() click to toggle source
# File lib/params_ready/value/coder.rb, line 89
def finish
  super
  freeze
end
format(value, format) click to toggle source
# File lib/params_ready/value/coder.rb, line 85
def format(value, format)
  @format[value, format]
end
value_class_name() click to toggle source
# File lib/params_ready/value/coder.rb, line 77
def value_class_name
  @name
end