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 "    class << self\n      include ROM::Support::Publisher\n\n      def inherited(klass)\n        super\n        \#{base}.__send__(:broadcast, :inherited, klass)\n      end\n    end\n  RUBY\nend\n"