Module: Declarative::Schema::Heritage

Defined in:
lib/declarative/schema.rb

Instance Method Summary collapse

Instance Method Details

#heritage ⇒ Object



57
58
59
# File 'lib/declarative/schema.rb', line 57

def heritage
  @heritage ||= ::Declarative::Heritage.new
end

#inherited(subclass) ⇒ Object

DISCUSS: this could be in Decorator? but then we couldn't do B < A(include X) for non-decorators, right?



61
62
63
64
# File 'lib/declarative/schema.rb', line 61

def inherited(subclass) # DISCUSS: this could be in Decorator? but then we couldn't do B < A(include X) for non-decorators, right?
  super
  heritage.(subclass)
end