Class: Muwu::ProjectException::OptionValueNotUnderstood

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

Instance Method Summary collapse

Constructor Details

#initialize(key, value) ⇒ OptionValueNotUnderstood

Returns a new instance of OptionValueNotUnderstood.



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

def initialize(key, value)
  @key = key
  @value = value
end

Instance Method Details

#reportObject



12
13
14
# File 'lib/muwu/project_exception/option_value_not_understood.rb', line 12

def report
  "For option key `#{@key}`, the value `#{@value}` is not understood."
end

#typeObject



17
18
19
# File 'lib/muwu/project_exception/option_value_not_understood.rb', line 17

def type
  :warning
end