Exception: AocCli::Errors::UserInv
- Inherits:
-
StandardError
- Object
- StandardError
- AocCli::Errors::UserInv
- Defined in:
- lib/aoc_cli/errors.rb
Instance Method Summary collapse
-
#initialize(user) ⇒ UserInv
constructor
A new instance of UserInv.
- #message ⇒ Object
Constructor Details
#initialize(user) ⇒ UserInv
Returns a new instance of UserInv.
13 14 15 |
# File 'lib/aoc_cli/errors.rb', line 13 def initialize(user) @user = user end |
Instance Method Details
#message ⇒ Object
16 17 18 19 20 21 |
# File 'lib/aoc_cli/errors.rb', line 16 def " \#{ERROR}: Invalid user: \#{@user.to_s.red}\n No key was found under this alias\n error\nend\n" |