Module: HttpStub::Extensions::Rack::Handler::ClassMethods
- Defined in:
- lib/http_stub/extensions/rack/handler.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(mod) ⇒ Object
13 14 15 |
# File 'lib/http_stub/extensions/rack/handler.rb', line 13 def self.extended(mod) mod.singleton_class.alias_method_chain :get, :run_check end |
Instance Method Details
#get_with_run_check(server) ⇒ Object
17 18 19 20 21 |
# File 'lib/http_stub/extensions/rack/handler.rb', line 17 def get_with_run_check(server) handler = get_without_run_check(server) raise NameError, "#{server} Rack handler is invalid" unless handler.respond_to?(:run) handler end |