Sha256: 5fcca0ff1baa0ec0d805b61510e4c5230bd4b3340d07b080ba4c4fc081954a19

Contents?: true

Size: 269 Bytes

Versions: 19

Compression:

Stored size: 269 Bytes

Contents

module Semaphore
  module_function

  def display_files(title, files)
    display_title_and_count(title, files)

    files.each { |file| puts "- #{file}" }

    puts "\n"
  end

  def display_title_and_count(title, files)
    puts "#{title} #{files.count}\n"
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
semaphore_test_boosters-1.2.3 lib/test_boosters/display_files.rb
semaphore_test_boosters-1.2.2 lib/test_boosters/display_files.rb
semaphore_test_boosters-1.2.1 lib/test_boosters/display_files.rb
semaphore_test_boosters-1.2.0 lib/test_boosters/display_files.rb
semaphore_test_boosters-1.1.0 lib/test_boosters/display_files.rb
semaphore_test_boosters-1.0.2 lib/test_boosters/display_files.rb
semaphore_test_boosters-1.0.1 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.9.9 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.9.8 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.9.7 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.9.5 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.9.4 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.9.2 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.9.1 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.8.1 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.8.0 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.7.1 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.7.0 lib/test_boosters/display_files.rb
semaphore_test_boosters-0.6.0 lib/test_boosters/display_files.rb