Exception: AocCli::Errors::KeyDup
- Inherits:
-
StandardError
- Object
- StandardError
- AocCli::Errors::KeyDup
- Defined in:
- lib/aoc_cli/errors.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ KeyDup
constructor
A new instance of KeyDup.
- #message ⇒ Object
Constructor Details
#initialize(key) ⇒ KeyDup
Returns a new instance of KeyDup.
121 122 123 |
# File 'lib/aoc_cli/errors.rb', line 121 def initialize(key) @key = key end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
120 121 122 |
# File 'lib/aoc_cli/errors.rb', line 120 def key @key end |
Instance Method Details
#message ⇒ Object
124 125 126 127 128 |
# File 'lib/aoc_cli/errors.rb', line 124 def " \#{ERROR}: The key \#{key.yellow} already exists in your config file\n error\nend\n" |