class

Bindgen::Configuration::Enum

Inherits YAML::Serializable < Reference < Object

Configuration for enum mapping

Constructors

new(destination : String, prefix : Bool | String = false, flags : Bindgen::Util::Tribool = Bindgen::Util::Tribool.unset, camelcase : Bool = true)
Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

camelcase

Camelcase translation

Source
camelcase=(camelcase : Bool)

Camelcase translation

Source
destination

Path of the enumeration type in Crystal

Source
destination=(destination : String)

Path of the enumeration type in Crystal

Source
flags

Forces a specific @[Flags] setting

Source
flags=(flags : Bindgen::Util::Tribool)

Forces a specific @[Flags] setting

Source
prefix

Common prefix detection of enums

Source
prefix=(prefix : String | Bool)

Common prefix detection of enums

Source