Module: RubyToUML::PathTransformer

Defined in:
lib/ruby_to_uml/path_transformer.rb

Class Method Summary collapse

Class Method Details

.transform_files_and_or_directories_paths_to_file_paths(paths) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/ruby_to_uml/path_transformer.rb', line 5

def self.transform_files_and_or_directories_paths_to_file_paths(paths)
  paths.map { |path| resolve_absolute_path(path) }
      .map { |path| path.file? ? path : resolve_children(path) }
      .flatten
      .map(&:to_s)
      .filter { |path| path.match?(/\.rb$/) }
      .sort
end