class VCR::LibraryHooks
@private
Attributes
exclusive_hook[RW]
Public Instance Methods
disabled?(hook)
click to toggle source
# File lib/vcr/library_hooks.rb, line 6 def disabled?(hook) ![nil, hook].include?(exclusive_hook) end
exclusively_enabled(hook) { || ... }
click to toggle source
# File lib/vcr/library_hooks.rb, line 10 def exclusively_enabled(hook) self.exclusive_hook = hook yield ensure self.exclusive_hook = nil end