Class: Muwu::ProjectException::OptionKeyNotUnderstood

Inherits:
Object
  • Object
show all
Defined in:
lib/muwu/project_exception/option_key_not_understood.rb

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ OptionKeyNotUnderstood

Returns a new instance of OptionKeyNotUnderstood.



6
7
8
# File 'lib/muwu/project_exception/option_key_not_understood.rb', line 6

def initialize(key)
  @key = key
end

Instance Method Details

#reportObject



11
12
13
# File 'lib/muwu/project_exception/option_key_not_understood.rb', line 11

def report
  "The option key `#{@key}` is not understood."
end

#typeObject



16
17
18
# File 'lib/muwu/project_exception/option_key_not_understood.rb', line 16

def type
  :warning
end