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

Module Erb

Import path

import codeql.ruby.ast.Erb

Classes

ErbAstNode

A node in the ERB abstract syntax tree. This class is the base class for all ERB elements.

ErbCode

An ERB token appearing within a code directive. This will typically be interpreted as Ruby code or a GraphQL query, depending on context.

ErbComment

An ERB token appearing within a comment directive.

ErbCommentDirective

A comment directive in an ERB template. erb <%#= 2 + 2 %> <%# for x in xs do %>

ErbDirective

A directive in an ERB template.

ErbExecutionDirective

An execution directive in an ERB template. This code will be executed as Ruby, but not rendered. erb <% books = author.books for book in books do %>

ErbFile

A File containing an Embedded Ruby template. This is typically a file containing snippets of Ruby code that can be evaluated to create a compiled version of the file.

ErbGraphqlDirective

A GraphQL directive in an ERB template. erb <%graphql fragment Foo on Bar { some { queryText moreProperties } } %>

ErbOutputDirective

An output directive in an ERB template. erb <%= fragment Foo on Bar { some { queryText moreProperties } } %>

ErbTemplate

An ERB template. This can contain multiple directives to be executed when the template is compiled.

ErbToken

An ERB token. This could be embedded code, a comment, or arbitrary text.