Sha256: 2fc7ec95624d11fb0cf18f0ce3dbe0910f84915e7f01f8406c0a4ccff3eebd5a

Contents?: true

Size: 390 Bytes

Versions: 16

Compression:

Stored size: 390 Bytes

Contents

module JsDuck
  module Process

    # Auto-detects classes inheriting from Ext.Component, and marks
    # them as :component.
    class Components
      def initialize(relations)
        @relations = relations
      end

      def process_all!
        @relations.each do |cls|
          cls[:component] = true if cls.inherits_from?("Ext.Component")
        end
      end
    end

  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

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