aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firm/EnumRenderer.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/firm/EnumRenderer.kt')
-rw-r--r--src/main/kotlin/moe/nea/firm/EnumRenderer.kt8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main/kotlin/moe/nea/firm/EnumRenderer.kt b/src/main/kotlin/moe/nea/firm/EnumRenderer.kt
index 3ffd6d3..03f5f95 100644
--- a/src/main/kotlin/moe/nea/firm/EnumRenderer.kt
+++ b/src/main/kotlin/moe/nea/firm/EnumRenderer.kt
@@ -1,13 +1,7 @@
package moe.nea.firm
interface EnumRenderer<E: Any> {
- fun getName(option: ManagedOption<E>, value: E): String
companion object {
- fun <E: Enum<E>> default() = object: EnumRenderer<E> {
- override fun getName(option: ManagedOption<E>, value: E): String {
- return value.name.lowercase()
- }
-
- }
+ fun <E: Enum<E>> default() = object: EnumRenderer<E> {}
}
} \ No newline at end of file