Bindgen::Crystal::Format
Formatter for Crystal style code.
Constructors
Instance methods
Formats arg as type name. If binding is true, treat this as
argument for a fun declaration.
Formats arguments as name : type, .... If binding is true,
treats this as argument for a fun declaration.
Generates a literal value suitable for Crystal code, using the value of type_name. type_name is a completely deduced Crystal type-name.
Returns nil if type_name is unknown (It's not built-in). Try
#qualified_enum_name in that case if it might be an enum.
Formats arguments as *, name : type, ....
Returns the number literal of type_name with value. The result is valid a Crystal literal, and can be directly written.
Returns the literal-suffix for Crystal code, to signify a literal matching the intended type_name.
If type_name is unknown, returns nil.