class RequestInterceptor::Application
Public Class Methods
customize(&customizations)
click to toggle source
# File lib/request_interceptor/application.rb, line 5 def customize(&customizations) RequestInterceptor.define(self, &customizations) end
intercept(pattern, *args, &test)
click to toggle source
# File lib/request_interceptor/application.rb, line 9 def intercept(pattern, *args, &test) RequestInterceptor.run(pattern => self.new(*args), &test) end
match(pattern)
click to toggle source
Calls superclass method
# File lib/request_interceptor/application.rb, line 13 def match(pattern) define_singleton_method(:intercept) do |*args, &test| super(pattern, *args, &test) end end
Also aliased as: host