Module: Glossarist::Utilities::Enum

Included in:
ConceptDate, ConceptSource, Designation::Abbreviation, Designation::Base, Designation::GrammarInfo, ManagedConcept, RelatedConcept
Defined in:
lib/glossarist/utilities/enum.rb,
lib/glossarist/utilities/enum/class_methods.rb,
lib/glossarist/utilities/enum/enum_collection.rb,
lib/glossarist/utilities/enum/instance_methods.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: EnumCollection

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



15
16
17
18
# File 'lib/glossarist/utilities/enum.rb', line 15

def self.extended(base)
  base.include(InstanceMethods)
  base.extend(ClassMethods)
end

.included(base) ⇒ Object



10
11
12
13
# File 'lib/glossarist/utilities/enum.rb', line 10

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