Parent

Files

WebMock::CallbackRegistry

Public Class Methods

add_callback(options, block) click to toggle source
   # File lib/webmock/callback_registry.rb, line 5
5:     def self.add_callback(options, block)
6:       @@callbacks << {:options => options, :block => block}
7:     end
any_callbacks?() click to toggle source
    # File lib/webmock/callback_registry.rb, line 30
30:     def self.any_callbacks?
31:       !@@callbacks.empty?
32:     end
callbacks() click to toggle source
    # File lib/webmock/callback_registry.rb, line 9
 9:     def self.callbacks
10:       @@callbacks
11:     end
invoke_callbacks(options, request_signature, response) click to toggle source
    # File lib/webmock/callback_registry.rb, line 13
13:     def self.invoke_callbacks(options, request_signature, response)
14:       return if @@callbacks.empty?
15:       CallbackRegistry.callbacks.each do |callback|
16:         except = callback[:options][:except]
17:         real_only = callback[:options][:real_requests_only]
18:         unless except && except.include?(options[:lib])
19:           if !real_only || options[:real_request]
20:             callback[:block].call(request_signature, response)
21:           end
22:         end
23:       end
24:     end
reset() click to toggle source
    # File lib/webmock/callback_registry.rb, line 26
26:     def self.reset
27:       @@callbacks = []
28:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.