Module: Struct::Default_Value::ClassMethods

Included in:
Struct
Defined in:
lib/struct/default_value/classmethods.rb

Instance Method Summary collapse

Instance Method Details

#inherited(cls) ⇒ Object (private)


9
10
11
12
13
14
15
16
17
18
19
# File 'lib/struct/default_value/classmethods.rb', line 9

def inherited(cls)
  super
  
  cls.class_eval do
    extend Default_Value::SubclassClassMethods
    include Default_Value::SubclassInstanceMethods

    # [Hash] autonym[Symbol] => default[SubclassClassMethods::Default]
    @defaults = {}
  end
end