Exception: Foxtail::CLI::TidyError
- Inherits:
-
Error
- Object
- StandardError
- Tools::Error
- Error
- Foxtail::CLI::TidyError
- Defined in:
- lib/foxtail/cli.rb
Overview
Raised when tidy command encounters syntax errors without –with-junk
Instance Attribute Summary collapse
-
#files_with_errors ⇒ Array<String>
readonly
Paths to files with syntax errors.
Instance Method Summary collapse
-
#initialize(files_with_errors) ⇒ TidyError
constructor
A new instance of TidyError.
Constructor Details
#initialize(files_with_errors) ⇒ TidyError
Returns a new instance of TidyError.
36 37 38 39 |
# File 'lib/foxtail/cli.rb', line 36 def initialize(files_with_errors) @files_with_errors = files_with_errors super("Files contain syntax errors: #{files_with_errors.join(", ")}") end |
Instance Attribute Details
#files_with_errors ⇒ Array<String> (readonly)
Returns Paths to files with syntax errors.
33 34 35 |
# File 'lib/foxtail/cli.rb', line 33 def files_with_errors @files_with_errors end |