Class: R2OAS::Schema::V3::ComponentsFileManager

Inherits:
IncludeRefBaseFileManager show all
Defined in:
lib/r2-oas/schema/v3/manager/file/components_file_manager.rb

Constant Summary

Constants inherited from IncludeRefBaseFileManager

IncludeRefBaseFileManager::REF

Constants inherited from Base

Base::SUPPORT_COMPONENTS_OBJECTS

Instance Attribute Summary

Attributes inherited from BaseFileManager

#original_path

Instance Method Summary collapse

Methods inherited from IncludeRefBaseFileManager

#descendants_paths

Methods inherited from BaseFileManager

#delete, #descendants_paths, #load_data, #save, #save_after_deep_merge, #save_file_path

Methods inherited from Base

#support_components_objects

Constructor Details

#initialize(path, path_type = :ref) ⇒ ComponentsFileManager

Returns a new instance of ComponentsFileManager.



9
10
11
12
13
14
# File 'lib/r2-oas/schema/v3/manager/file/components_file_manager.rb', line 9

def initialize(path, path_type = :ref)
  super
  @path_type = path_type
  @original_path = path
  @recursive_search_class = self.class
end

Instance Method Details

#skip_save?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/r2-oas/schema/v3/manager/file/components_file_manager.rb', line 16

def skip_save?
  save_file_path.in? paths_config.many_components_file_paths
end