Exception: Magic::Lookup::Error
- Inherits:
-
NameError
- Object
- NameError
- Magic::Lookup::Error
- Defined in:
- lib/magic/lookup/error.rb
Class Method Summary collapse
Class Method Details
.for(object, lookup_class) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/magic/lookup/error.rb', line 6 def self.for object, lookup_class default_name = lookup_class.name_for object.class new "no #{lookup_class} found for #{object.class}, default name is #{default_name}", default_name, receiver: object end |