Parent

Class/Module Index [+]

Quicksearch

WebMock::HttpLibAdapters::HTTPClientAdapter

Constants

OriginalHttpClient

Public Class Methods

disable!() click to toggle source
# File lib/webmock/http_lib_adapters/httpclient_adapter.rb, line 21
def self.disable!
  Object.send(:remove_const, :HTTPClient)
  Object.send(:const_set, :HTTPClient, OriginalHttpClient)
end
enable!() click to toggle source
# File lib/webmock/http_lib_adapters/httpclient_adapter.rb, line 16
def self.enable!
  Object.send(:remove_const, :HTTPClient)
  Object.send(:const_set, :HTTPClient, WebMockHTTPClient)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.