class

Bindgen::Template::EvaluateOnce

Inherits Bindgen::Template::Base < Reference < Object

Wraps a template that uses % more than once, so that the code, commonly a function call, is evaluated only once. The code is bound to a variable named bg_value, which the pattern then uses instead.

Constants

VARIABLE = "bg_value"

Name of the variable the code is bound to.

Constructors

new(pattern : Basic, language : Language)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

Source
no_op?

Is this a no-operation template?

Source
template(code) : String
Source

Nested types