# File lib/yard/generators/constants_generator.rb, line 41
      def inherited_constants_by_class
        all_consts = current_object.inherited_constants
        current_object.inheritance_tree[1..-1].each do |superclass|
          next if superclass.is_a?(CodeObjects::Proxy)
          opts = { :included => false, :inherited => false }
          consts = superclass.constants(opts).select {|c| all_consts.include?(c) }
          next if consts.empty?
          yield(superclass, consts)
        end
      end