Module: ClassX::AttributeMethods::ClassMethods::ValidateWithNotProc

Defined in:
lib/classx/attribute.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#validate?(val) ⇒ Boolean

Returns:

  • (Boolean)


113
114
115
# File 'lib/classx/attribute.rb', line 113

def validate? val
  return config[:validate] === val
end