Exception: FixtureFactory::WrongClassError

Inherits:
Error
  • Object
show all
Defined in:
lib/fixture_factory/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ WrongClassError

Returns a new instance of WrongClassError.



33
34
35
36
37
38
39
40
# File 'lib/fixture_factory/errors.rb', line 33

def initialize(klass)
  message = if klass.is_a?(String)
    string_class_error_message(klass)
  else
    proc_class_error_message(klass)
  end
  super(message)
end