Module: HttpStub::Extensions::Rack::Handler::ClassMethods

Defined in:
lib/http_stub/extensions/rack/handler.rb

Instance Method Summary collapse

Instance Method Details

#get(server) ⇒ Object

Raises:

  • (NameError)

13
14
15
16
17
# File 'lib/http_stub/extensions/rack/handler.rb', line 13

def get(server)
  handler = super
  raise NameError, "#{server} Rack handler is invalid" unless handler.respond_to?(:run)
  handler
end