class Orbit::Interceptors::Item
Attributes
excludes[RW]
interceptor_class[RW]
path[RW]
Public Class Methods
new(path, interceptor_class, excludes=[])
click to toggle source
# File lib/orbit/interceptors/item.rb, line 6 def initialize(path, interceptor_class, excludes=[]) @path = path @interceptor_class = interceptor_class @excludes = excludes end
Public Instance Methods
match_path?(requested_path)
click to toggle source
# File lib/orbit/interceptors/item.rb, line 12 def match_path?(requested_path) requested_path.match("^#{path}") && !excludes.include?(requested_path) end