Sha256: 7be265f0533388b555890aacf316e9dd1a7c129102828bed410df6d45d8126f3

Contents?: true

Size: 323 Bytes

Versions: 4

Compression:

Stored size: 323 Bytes

Contents

<%- enums.each_with_index do |enum, index| -%>
enum class <%= enum[:class_name] %>(val key: String) {
	<%- enum[:values].each_with_index do |v, index| -%>
	<%= v[:name] %>("<%= v[:value] %>")<%= index == enum[:values].count - 1 ? ";" : "," %>
	<%- end -%>
}
<%- unless index == enums.count - 1 -%>

<%- end -%>
<%- end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
evva-0.4.3 lib/evva/templates/kotlin/special_property_enums.kt
evva-0.4.2 lib/evva/templates/kotlin/special_property_enums.kt
evva-0.4.1 lib/evva/templates/kotlin/special_property_enums.kt
evva-0.4.0 lib/evva/templates/kotlin/special_property_enums.kt