Module: InheritableClassAttributes

Defined in:
lib/inheritable_class_attributes.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'lib/inheritable_class_attributes.rb', line 2

def self.included(base)
  base.extend ClassMethods
  base.module_eval do
    class << self
      alias inherited_without_inheritable_class_attributes inherited
      alias inherited inherited_with_inheritable_class_attributes
    end
  end
end