class Representable::Coercion::Coercer
Public Class Methods
Source
# File lib/representable/coercion.rb, line 10 def initialize(type) @type = type end
Public Instance Methods
Source
# File lib/representable/coercion.rb, line 14 def call(input, _options) @type.call(input) end