Class: R2OAS::Schema::V3::BaseCleaner
- Defined in:
- lib/r2-oas/schema/v3/cleaner/base_cleaner.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Base
R2OAS::Schema::V3::Base::SUPPORT_COMPONENTS_OBJECTS
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Base
Constructor Details
This class inherits a constructor from R2OAS::Base
Instance Method Details
#clean_docs ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/r2-oas/schema/v3/cleaner/base_cleaner.rb', line 10 def clean_docs clean_target_files.each do |file_path| file_manager = FileManager.new(file_path, :full) file_manager.delete yield file_manager.save_file_path(type: :relative) if block_given? end end |