Module: ClassX::AttributeMethods::ClassMethods::ValidateWithProc

Defined in:
lib/classx/attribute.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#validate?(val) ⇒ Boolean

Returns:

  • (Boolean)


107
108
109
# File 'lib/classx/attribute.rb', line 107

def validate? val
  return config[:validate].call(val)
end