module SmartCore::Schema::DSL::ClassInheritance

@api private @since 0.1.0

Public Instance Methods

inherited(child_klass) click to toggle source

@param child_klass [Class] @return [void]

@api private @since 0.1.0

Calls superclass method
# File lib/smart_core/schema/dsl.rb, line 27
def inherited(child_klass)
  child_klass.instance_variable_set(
    :@__schema_checker__,
    SmartCore::Schema::Checker.new.combine_with(__schema_checker__)
  )
  child_klass.singleton_class.prepend(ClassInheritance)
  super
end