macrame.play.enums
This trait provides an instance of PathBindable for an enumeration. It works by extending the companion object of the enumeration class.
PathBindable
@enum class Color { Red Blue Yellow } object Color extends PathBindable[Color]
If you need your PathBindable instance to be case-insensitive you can override the caseSensitive member like so:
caseSensitive
@enum class Color { Red Blue Yellow } object Color extends PathConverters[Color] { override val caseSensitive = false }
Indicates whether bind is case sensitive.
bind
This trait provides an instance of
PathBindable
for an enumeration. It works by extending the companion object of the enumeration class.If you need your
PathBindable
instance to be case-insensitive you can override thecaseSensitive
member like so: