Module: EnumerateIt

Defined in:
lib/enumerate_it.rb,
lib/enumerate_it/base.rb,
lib/enumerate_it/version.rb,
lib/enumerate_it/class_methods.rb,
lib/generators/enumerate_it/enum/enum_generator.rb

Defined Under Namespace

Modules: ClassMethods, Generators Classes: Base

Constant Summary collapse

VERSION =
'3.2.4'.freeze

Class Method Summary collapse

Class Method Details

.extended(receiver) ⇒ Object



7
8
9
10
11
12
# File 'lib/enumerate_it.rb', line 7

def self.extended(receiver)
  receiver.class_attribute :enumerations, instance_writer: false, instance_reader: false
  receiver.enumerations = {}

  receiver.extend ClassMethods
end