Module: UseCaseValidations

Included in:
UseCase::Validator
Defined in:
lib/usecasing_validations.rb,
lib/usecasing_validations/errors.rb,
lib/usecasing_validations/target.rb,
lib/usecasing_validations/helpers.rb,
lib/usecasing_validations/version.rb,
lib/usecasing_validations/validator.rb,
lib/usecasing_validations/each_validator.rb,
lib/usecasing_validations/custom_validator.rb,
lib/usecasing_validations/validations/format.rb,
lib/usecasing_validations/validations/length.rb,
lib/usecasing_validations/validations/presence.rb,
lib/usecasing_validations/validations/uniqueness.rb,
lib/usecasing_validations/validations/numericality.rb,
lib/usecasing_validations/validations/helper_methods.rb

Defined Under Namespace

Modules: ClassMethods, Helpers, Target, Validations Classes: CustomValidator, EachValidator, Errors, Validator

Constant Summary collapse

VERSION =
"0.7.0"

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



27
28
29
30
31
# File 'lib/usecasing_validations.rb', line 27

def self.included(base)
  base.extend(Validations::HelperMethods)
  base.class_eval { include Target }
  base.extend(ClassMethods)
end