Exception: QuickSearch::UnsupportedAdapter

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/quick-search/search.rb

Constant Summary collapse

DEFAULT_MESSAGE =
'QuickSearch could not find an adapter for your class: %s'

Instance Method Summary collapse

Constructor Details

#initialize(cls, *args) ⇒ UnsupportedAdapter

Returns a new instance of UnsupportedAdapter.



75
76
77
# File 'lib/quick-search/search.rb', line 75

def initialize(cls, *args)
  super(sprintf(DEFAULT_MESSAGE, cls), *args)
end