class Bindgen::Template::Basic

Overview

The default template. Uses Util.template to substitute code into the given pattern.

If simple is given, the template will only use a subset of the features; % performs substitution, whereas the escape sequence %% outputs a literal percent sign.

Defined in:

bindgen/template/basic.cr

Constructors

Instance Method Summary

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

def self.new(pattern : String, simple : Bool = false) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

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


[View source]
def no_op? : Bool #
Description copied from class Bindgen::Template::Base

Is this a no-operation template?


[View source]
def template(code) : String #

[View source]