class AocCli::Errors::KeyDup

Attributes

key[R]

Public Class Methods

new(key) click to toggle source
# File lib/aoc_cli/errors.rb, line 121
def initialize(key)
        @key = key
end

Public Instance Methods

message() click to toggle source
# File lib/aoc_cli/errors.rb, line 124
                        def message
                                <<~error
                                #{ERROR}: The key #{key.yellow} already exists in your config file
                                error
                        end