Exception: Guise::InvalidGuiseValue

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/guise/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(guise_value, klass) ⇒ InvalidGuiseValue

Returns a new instance of InvalidGuiseValue.



23
24
25
26
# File 'lib/guise/errors.rb', line 23

def initialize(guise_value, klass)
  @guise_value = guise_value
  @klass = klass
end

Instance Method Details

#messageObject



28
29
30
# File 'lib/guise/errors.rb', line 28

def message
  "`#{guise_value}' is not a defined guise value for #{klass}"
end