Module: WebMock

Defined in:
lib/webmock/disabler/version.rb,
lib/webmock/disabler/webmock_extensions.rb

Defined Under Namespace

Modules: Disabler

Class Method Summary collapse

Class Method Details

.disable!Object



6
7
8
# File 'lib/webmock/disabler/webmock_extensions.rb', line 6

def self.disable!
  @@enabled = false
end

.enable!Object



2
3
4
# File 'lib/webmock/disabler/webmock_extensions.rb', line 2

def self.enable!
  @@enabled = true
end

.enabled?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/webmock/disabler/webmock_extensions.rb', line 10

def self.enabled?
  @@enabled
end