Exception: Lunr::BadModel

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

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ BadModel

Returns a new instance of BadModel.



15
16
17
# File 'lib/lunr/errors.rb', line 15

def initialize klass
  super "#{klass.name} doesn't include Lunr::Model!"
end