module ROM::Support::InheritanceHook

Public Class Methods

extended(base) click to toggle source
# 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