Module: Epic::Errors

Included in:
Compressor, Validator::Base
Defined in:
lib/epic/errors.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#display_errorsObject



11
12
13
14
15
16
# File 'lib/epic/errors.rb', line 11

def display_errors
  errors.each do |err|
    $stdout.puts
    $stdout.puts err.to_s
  end        
end

#errorsObject



3
4
5
# File 'lib/epic/errors.rb', line 3

def errors
  @errors ||= []
end

#valid?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/epic/errors.rb', line 7

def valid?
  errors.empty?
end