Module: ClassX::AttributeMethods::ClassMethods::CoerceWithProc

Defined in:
lib/classx/attribute.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#coerce(val) ⇒ Object



82
83
84
# File 'lib/classx/attribute.rb', line 82

def coerce val
  config[:coerce].call(val)
end