lib/jsduck/override.rb in jsduck-4.0.0 vs lib/jsduck/override.rb in jsduck-4.0.1

- old
+ new

@@ -1,28 +1,24 @@ module JsDuck class Override - def initialize(classes_hash, classes_array) + def initialize(classes_hash) @classes_hash = classes_hash - @classes_array = classes_array end # Applies all override classes to target classes + # Returns all the processed override classes. def process_all! overrides = [] - @classes_array.each do |cls| + @classes_hash.each_value do |cls| if cls[:override] process(cls) overrides << cls end end - # Discard override classes - overrides.each do |cls| - @classes_hash.delete(cls[:name]) - @classes_array.delete(cls) - end + overrides end private # Applies override class to target class