Class: Tuxedo::Outputter

Inherits:
Object
  • Object
show all
Defined in:
lib/tuxedo/outputter.rb

Class Method Summary collapse

Class Method Details



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/tuxedo/outputter.rb', line 3

def self.print_to_screen(error_collection)
  #errors will be hash of errors

  error_collection.each do |error_type, errors|
    puts error_type
    puts "------------------------------------"
    errors.each do |error|
      puts error.print
    end
    puts
  end
end