class Representable::Coercion::Coercer

Public Class Methods

new(type) click to toggle source
# File lib/representable/coercion.rb, line 10
def initialize(type)
  @type = type
end

Public Instance Methods

call(input, _options) click to toggle source
# File lib/representable/coercion.rb, line 14
def call(input, _options)
  @type.call(input)
end