Module: GS1::Validations
- Included in:
- Record
- Defined in:
- lib/gs1/validations.rb,
lib/gs1/validations/date_validation.rb,
lib/gs1/validations/length_validation.rb,
lib/gs1/validations/check_digit_validation.rb
Overview
Module for handling validations.
Defined Under Namespace
Modules: CheckDigitValidation, ClassMethods, DateValidation, InstanceMethods, LengthValidation
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/gs1/validations.rb', line 9 def self.included(base) base.extend ClassMethods base.send :include, InstanceMethods base.send :include, CheckDigitValidation base.send :include, DateValidation base.send :include, LengthValidation end |