Module: ROM::Support::GuardedInheritanceHook
- Defined in:
- lib/rom/support/guarded_inheritance_hook.rb
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rom/support/guarded_inheritance_hook.rb', line 6 def self.extended(base) base.class_eval <<-RUBY class << self include ROM::Support::Publisher def inherited(klass) super return if klass.superclass == #{base} #{base}.__send__(:broadcast, :inherited, klass) end end RUBY end |