class RailsDevTweaks::GranularAutoload::Matchers::PathMatcher

Public Class Methods

new(regex) click to toggle source
# File lib/rails_dev_tweaks/granular_autoload/matchers/path_matcher.rb, line 3
def initialize(regex)
  @regex = regex
end

Public Instance Methods

call(request) click to toggle source
# File lib/rails_dev_tweaks/granular_autoload/matchers/path_matcher.rb, line 7
def call(request)
  @regex =~ request.fullpath
end