module Escher::RackMiddleware::IncludePath::Helper

Public Instance Methods

included_path?(path) click to toggle source
# File lib/escher/rack_middleware/include_paths/helper.rb, line 7
def included_path?(path)
  included_paths.any? do |matcher|
    if matcher.is_a?(Regexp)
      !!(path =~ matcher)
    else
      path == matcher.to_s
    end
  end
end
included_paths() click to toggle source
# File lib/escher/rack_middleware/include_paths/helper.rb, line 3
def included_paths
  @included_paths ||= self.class.included_paths.dup
end