CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Member predicate Sinatra::Filter::getPattern

Gets the pattern which constrains this route, if any. In the example below, the pattern is /protected/*. Patterns are typically given as strings, and are interpreted by the mustermann gem (they are not regular expressions).

before '/protected/*' do
  authenticate!
end
ExprNode getPattern()