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

Class ErbExecutionDirective

An execution directive in an ERB template. This code will be executed as Ruby, but not rendered.

<% books = author.books
   for book in books do %>

Import path

import codeql.ruby.AST

Direct supertypes

Indirect supertypes

Predicates

getAPrimaryQlClass

Gets the name of a primary CodeQL class to which this node belongs.

toString

Gets a textual representation of this node.

Inherited predicates

getAChildStmt

Gets a statement that starts in directive that is not a child of any other statement starting in this directive.

from ErbDirective
getLocation

Gets the location of this node.

from ErbAstNode
getTerminalStmt

Gets the last child statement in this directive. See getAChildStmt for more details.

from ErbDirective
getToken

Gets the child token of this directive.

from ErbDirective

Charpred