class Bindgen::Configuration::Enum

Overview

Configuration for enum mapping

Included Modules

Defined in:

bindgen/configuration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(destination : String, prefix : Bool | String = false, flags : Bindgen::Util::Tribool = Bindgen::Util::Tribool.unset, camelcase : Bool = true) #

[View source]

Instance Method Detail

def camelcase : Bool #

Camelcase translation


[View source]
def camelcase=(camelcase : Bool) #

Camelcase translation


[View source]
def destination : String #

Path of the enumeration type in Crystal


[View source]
def destination=(destination : String) #

Path of the enumeration type in Crystal


[View source]

Forces a specific @[Flags] setting


[View source]
def flags=(flags : Bindgen::Util::Tribool) #

Forces a specific @[Flags] setting


[View source]
def prefix : String | Bool #

[View source]
def prefix=(prefix : String | Bool) #

[View source]