Class: KnapsackPro::TestFilePresenter

Inherits:
Object
  • Object
show all
Defined in:
lib/knapsack_pro/test_file_presenter.rb

Class Method Summary collapse

Class Method Details

.paths(test_files) ⇒ Object



10
11
12
# File 'lib/knapsack_pro/test_file_presenter.rb', line 10

def self.paths(test_files)
  test_files.map { |t| t['path'] }
end

.stringify_paths(test_file_paths) ⇒ Object



3
4
5
6
7
8
# File 'lib/knapsack_pro/test_file_presenter.rb', line 3

def self.stringify_paths(test_file_paths)
  test_file_paths
  .map do |test_file|
    %{"#{test_file}"}
  end.join(' ')
end