enum Amber::Configuration::SectionField::Kind

Defined in:

amber/configuration/section_field.cr

Enum Members

Text = 0

A String or String? field: the value is kept as text.

Flag = 1

A Bool field: read like the built-in boolean overrides.

Decimal = 2

A Float field: read like the built-in float overrides.

Section = 3

A nested YAML::Serializable section.

Mapping = 4

A Hash field: each key it already holds takes its own variable.

Other = 5

Any other field: read as a plain YAML scalar.

Instance Method Summary

Instance Method Detail

def decimal? #

Returns true if this enum value equals Decimal


[View source]
def flag? #

Returns true if this enum value equals Flag


[View source]
def mapping? #

Returns true if this enum value equals Mapping


[View source]
def other? #

Returns true if this enum value equals Other


[View source]
def section? #

Returns true if this enum value equals Section


[View source]
def text? #

Returns true if this enum value equals Text


[View source]