Module: EasilyTypable::SubClassMethods

Defined in:
lib/easily_typable.rb

Class Method Summary collapse

Class Method Details

.included(subclass_constant) ⇒ Object


35
36
37
38
39
40
41
42
43
# File 'lib/easily_typable.rb', line 35

def self.included(subclass_constant)
  super
  subclass_constant.class_eval(type_method_definition(subclass_constant))
  superclass_constant = subclass_constant.superclass
  begin
    superclass_constant.class_eval(type_method_definition(subclass_constant))
    superclass_constant = superclass_constant.superclass
  end while superclass_constant.include?(EasilyTypable)
end