Module: ROM::Support::InheritanceHook
- Defined in:
- lib/rom/support/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 |
# File 'lib/rom/support/inheritance_hook.rb', line 6 def self.extended(base) base.class_eval <<-RUBY class << self include ROM::Support::Publisher def inherited(klass) super #{base}.__send__(:broadcast, :inherited, klass) end end RUBY end |