class
Bindgen::Template::EvaluateOnce
- Bindgen::Template::EvaluateOnce
- Bindgen::Template::Base
- Reference
- Object
Overview
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.
Defined in:
bindgen/template/evaluate_once.crConstant Summary
-
VARIABLE =
"bg_value" -
Name of the variable the code is bound to.
Constructors
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#no_op? : Bool
Is this a no-operation template?
- #template(code) : String
Instance methods inherited from class Bindgen::Template::Base
followed_by(other : Base) : Base
followed_by,
no_op? : Bool
no_op?,
template(code : String) : String
template
Constructor Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.
def no_op? : Bool
#
Description copied from class Bindgen::Template::Base
Is this a no-operation template?