Class: ProxyFetcher::Exceptions::WrongCustomClass

Inherits:
ProxyFetcher::Error
  • Object
show all
Defined in:
lib/proxy_fetcher/exceptions.rb

Instance Method Summary collapse

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