Module: Mixture::Extensions::Attributable

Defined in:
lib/mixture/extensions/attributable.rb

Overview

Has the mixture have attributes.

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)


110
111
112
113
# File 'lib/mixture/extensions/attributable.rb', line 110

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