Exception: Konfa::RSpec::BadValueError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/konfa/rspec.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ BadValueError

Returns a new instance of BadValueError.



29
30
31
# File 'lib/konfa/rspec.rb', line 29

def initialize(msg)
  @type = msg.class.name
end

Instance Method Details

#to_sObject



33
34
35
# File 'lib/konfa/rspec.rb', line 33

def to_s
  "Konfa requires values to be of type String (or NilClass), you passed #{@type}"
end