Module: Mixture::Extensions::Validatable
- Defined in:
- lib/mixture/extensions/validatable.rb
Overview
Allows attributes to be validated based on a predefined set of principles.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ void
private
Called by Ruby when the module is included.
Class Method Details
.included(base) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Called by Ruby when the module is included. This just extends the base by the ClassMethods module and includes into the base the InstanceMethods module.
65 66 67 68 |
# File 'lib/mixture/extensions/validatable.rb', line 65 def self.included(base) base.extend ClassMethods base.send :include, InstanceMethods end |