Module: Mixture::Model

Defined in:
lib/mixture/model.rb

Overview

A model.

Examples:

class MyClass
  include Mixture::Model
  mixture_modules :attribute, :hash
end

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

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.

A method used internally by ruby.



30
31
32
33
# File 'lib/mixture/model.rb', line 30

def self.included(base)
  base.extend ClassMethods
  base.mixture_modules(:attribute, :coerce, :validate)
end