Exception: Foxtail::CLI::TidyCheckError

Inherits:
Error show all
Defined in:
lib/foxtail/cli.rb

Overview

Raised when tidy –check finds files that need formatting

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(files_needing_format) ⇒ TidyCheckError

Returns a new instance of TidyCheckError.

Parameters:

  • files_needing_format (Array<String>)

    Paths to files needing formatting



48
49
50
51
# File 'lib/foxtail/cli.rb', line 48

def initialize(files_needing_format)
  @files_needing_format = files_needing_format
  super("Files need formatting: #{files_needing_format.join(", ")}")
end

Instance Attribute Details

#files_needing_formatArray<String> (readonly)

Returns Paths to files needing formatting.

Returns:

  • (Array<String>)

    Paths to files needing formatting



45
46
47
# File 'lib/foxtail/cli.rb', line 45

def files_needing_format
  @files_needing_format
end