class Downgrade::Path

Attributes

regexps[W]

Public Class Methods

hit_regexp?(path) click to toggle source
# File lib/downgrade/path.rb, line 11
def hit_regexp?(path)
  self.regexps.each do |regexp|
    if path =~ regexp
      return true
    end
  end

  false
end
regexps() click to toggle source
# File lib/downgrade/path.rb, line 7
def regexps
  @regexps ||= []
end