Class: JsDuck::Process::Components
- Inherits:
-
Object
- Object
- JsDuck::Process::Components
- Defined in:
- lib/jsduck/process/components.rb
Overview
Auto-detects classes inheriting from Ext.Component, and marks them as :component.
Instance Method Summary collapse
-
#initialize(relations) ⇒ Components
constructor
A new instance of Components.
- #process_all! ⇒ Object
Constructor Details
#initialize(relations) ⇒ Components
Returns a new instance of Components.
7 8 9 |
# File 'lib/jsduck/process/components.rb', line 7 def initialize(relations) @relations = relations end |
Instance Method Details
#process_all! ⇒ Object
11 12 13 14 15 |
# File 'lib/jsduck/process/components.rb', line 11 def process_all! @relations.each do |cls| cls[:component] = true if cls.inherits_from?("Ext.Component") end end |