Class: Commands::Track::TrackNotFoundError
- Inherits:
-
Thor::Error
- Object
- Thor::Error
- Commands::Track::TrackNotFoundError
- Defined in:
- lib/commands/track/errors.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(track_name:, track_names:) ⇒ TrackNotFoundError
constructor
A new instance of TrackNotFoundError.
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 |