Class: JsDuck::Process::IgnoredClasses
- Inherits:
-
Object
- Object
- JsDuck::Process::IgnoredClasses
- Defined in:
- lib/jsduck/process/ignored_classes.rb
Overview
Gets rid of classes marked with @ignore
Instance Method Summary collapse
-
#initialize(classes_hash) ⇒ IgnoredClasses
constructor
A new instance of IgnoredClasses.
- #process_all! ⇒ Object
Constructor Details
#initialize(classes_hash) ⇒ IgnoredClasses
Returns a new instance of IgnoredClasses.
6 7 8 |
# File 'lib/jsduck/process/ignored_classes.rb', line 6 def initialize(classes_hash) @classes_hash = classes_hash end |
Instance Method Details
#process_all! ⇒ Object
10 11 12 |
# File 'lib/jsduck/process/ignored_classes.rb', line 10 def process_all! @classes_hash.delete_if {|name, cls| cls[:ignore] } end |