Sha256: c3ef640ee4ff252625749b173b12b0a806f6cfe5ff541b24469708c52bf65b3d

Contents?: true

Size: 697 Bytes

Versions: 24

Compression:

Stored size: 697 Bytes

Contents

require 'jsduck/logger'
require 'jsduck/class'
require 'jsduck/process/inherit_class'
require 'jsduck/process/inherit_members'

module JsDuck
  module Process

    # Deals with inheriting documentation
    class InheritDoc
      def initialize(relations)
        @relations = relations
        @inherit_class = InheritClass.new(@relations)
        @inherit_members = InheritMembers.new(@relations)
      end

      # Performs all inheriting
      def process_all!
        @relations.each do |cls|
          @inherit_class.resolve(cls)
          @inherit_members.resolve(cls)
        end

        @relations.each do |cls|
          cls.refresh_member_ids!
        end
      end

    end

  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
solvas-jsduck-6.0.0.30539 lib/jsduck/process/inherit_doc.rb
solvas-jsduck-6.0.0.9571 lib/jsduck/process/inherit_doc.rb
solvas-jsduck-6.0.0.6154 lib/jsduck/process/inherit_doc.rb
solvas-jsduck-6.0.0.4021 lib/jsduck/process/inherit_doc.rb
solvas-jsduck-6.0.0.2554 lib/jsduck/process/inherit_doc.rb
solvas-jsduck-6.0.0.1891 lib/jsduck/process/inherit_doc.rb
solvas-jsduck-6.0.0.beta.1888 lib/jsduck/process/inherit_doc.rb
jsduck-troopjs-0.0.10 lib/jsduck/process/inherit_doc.rb
jsduck-troopjs-0.0.9 lib/jsduck/process/inherit_doc.rb
jsduck-troopjs-0.0.8 lib/jsduck/process/inherit_doc.rb
jsduck-troopjs-0.0.7 lib/jsduck/process/inherit_doc.rb
jsduck-troopjs-0.0.5 lib/jsduck/process/inherit_doc.rb
jsduck-troopjs-0.0.4 lib/jsduck/process/inherit_doc.rb
jsduck-troopjs-0.0.3 lib/jsduck/process/inherit_doc.rb
jsduck-troopjs-0.0.1 lib/jsduck/process/inherit_doc.rb
jsduck-6.0.0beta lib/jsduck/process/inherit_doc.rb
jsduck-5.3.4 lib/jsduck/process/inherit_doc.rb
jsduck-5.3.3 lib/jsduck/process/inherit_doc.rb
jsduck-5.3.2 lib/jsduck/process/inherit_doc.rb
jsduck-5.3.1 lib/jsduck/process/inherit_doc.rb