Method: VCR::RequestMatcherRegistry#register
- Defined in:
- lib/vcr/request_matcher_registry.rb
#register(name, &block) ⇒ Object
55 56 57 58 59 60 61 |
# File 'lib/vcr/request_matcher_registry.rb', line 55 def register(name, &block) if @registry.has_key?(name) warn "WARNING: There is already a VCR request matcher registered for #{name.inspect}. Overriding it." end @registry[name] = Matcher.new(block) end |