module Hashie::Extensions::Coercion::InstanceMethods
def coerce_or_init(type)
def coerce_or_init(type) type.respond_to?(:coerce) ? ->(v) { type.coerce(v) } : ->(v) { type.new(v) } end
def coerce_or_init(type) type.respond_to?(:coerce) ? ->(v) { type.coerce(v) } : ->(v) { type.new(v) } end