Class: Commands::Track::TrackNotFoundError

Inherits:
Thor::Error
  • Object
show all
Defined in:
lib/commands/track/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(track_name:, track_names:) ⇒ TrackNotFoundError

Returns a new instance of TrackNotFoundError.



42
43
44
# File 'lib/commands/track/errors.rb', line 42

def initialize(track_name:, track_names:)
  super "Track #{track_name} not found.\nPlease choose from:#{track_names.join("\n")}"
end

Instance Method Details

#==(other) ⇒ Object



46
47
48
# File 'lib/commands/track/errors.rb', line 46

def ==(other)
  to_s == other.to_s
end