class SmartCore::Initializer::TypeSystem::ThyTypes::Operation::Validate
@api private @since 0.1.0
Public Instance Methods
call(value)
click to toggle source
@param value [Any] @return [void]
@api private @since 0.1.0
# File lib/smart_core/initializer/plugins/thy_types/thy_types/operation/validate.rb, line 12 def call(value) raise( SmartCore::Initializer::ThyTypeValidationError, "Thy::Types validation error: (get #{value.inspect} for type #{type.inspect}" ) unless type.check(value).success? end