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

Module Sinatra

Provides modeling for the Sinatra library.

Import path

import codeql.ruby.frameworks.Sinatra

Classes

AfterFilter

A class for Sinatra after filters. These run after the route handler.

App

A Sinatra application.

BeforeFilter

A class for Sinatra before filters. These run before the route handler.

ErbCall

A call which renders an ERB template as an HTTP response.

ErbLocalsHashSyntheticGlobal

A synthetic global representing the hash of local variables passed to an ERB template.

Filter

A class representing Sinatra filters AKA callbacks.

FilterJumpStep

A class defining additional jump steps arising from filters. This only models flow between filters with no patterns - i.e. those that apply to all routes. Filters with patterns are not yet modeled.

Route

A Sinatra route handler. HTTP requests with a matching method and path will be handled by the block. For example, the following route will handle GET requests with path /.