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

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.

Parameters:

  • base (Object)


65
66
67
68
# File 'lib/mixture/extensions/validatable.rb', line 65

def self.included(base)
  base.extend ClassMethods
  base.send :include, InstanceMethods
end