module Declarative::Schema

Include this to maintain inheritable, nested schemas with ::defaults and ::feature the way we have it in Representable, Reform, and Disposable.

The schema with its defnitions will be kept in ::definitions.

Requirements to includer: ::default_nested_class, override building with ::nested_builder.

Public Class Methods

extended(extender) click to toggle source
# File lib/declarative/schema.rb, line 14
def self.extended(extender)
  extender.extend DSL                 # ::property
  extender.extend Feature             # ::feature
  extender.extend Heritage::DSL       # ::heritage
  extender.extend Heritage::Inherited # ::included
end