Exception: TinyClassifier::InvalidOutputDir

Inherits:
TinyClassifierError show all
Defined in:
lib/tiny-classifier/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output_dir) ⇒ InvalidOutputDir

Returns a new instance of InvalidOutputDir.



96
97
98
# File 'lib/tiny-classifier/errors.rb', line 96

def initialize(output_dir)
  @output_dir = output_dir
end

Instance Attribute Details

#output_dirObject (readonly)

Returns the value of attribute output_dir.



94
95
96
# File 'lib/tiny-classifier/errors.rb', line 94

def output_dir
  @output_dir
end

Instance Method Details

#messageObject



100
101
102
# File 'lib/tiny-classifier/errors.rb', line 100

def message
  "#{@output_dir} is not available as the output directory."
end