Class: R2OAS::Schema::V3::BaseCleaner

Inherits:
Base show all
Defined in:
lib/r2-oas/schema/v3/cleaner/base_cleaner.rb

Direct Known Subclasses

Cleaner, ComponentsCleaner

Constant Summary

Constants inherited from Base

R2OAS::Schema::V3::Base::SUPPORT_COMPONENTS_OBJECTS

Instance Method Summary collapse

Methods inherited from Base

#support_components_objects

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from R2OAS::Base

Instance Method Details

#clean_docsObject



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