Class: ProxyFetcher::Exceptions::WrongCustomClass
- Inherits:
-
ProxyFetcher::Error
- Object
- ProxyFetcher::Exceptions::WrongCustomClass
- Defined in:
- lib/proxy_fetcher/exceptions.rb
Instance Method Summary collapse
-
#initialize(klass, methods) ⇒ WrongCustomClass
constructor
A new instance of WrongCustomClass.
Constructor Details
#initialize(klass, methods) ⇒ WrongCustomClass
Returns a new instance of WrongCustomClass.
6 7 8 9 |
# File 'lib/proxy_fetcher/exceptions.rb', line 6 def initialize(klass, methods) required_methods = Array(methods).join(', ') super("#{klass} must respond to [#{required_methods}] class methods!") end |