Sha256: 0630043d06c26278ac645c0a7b787a360b0f338628d956475ee751d6cd3d46d8

Contents?: true

Size: 322 Bytes

Versions: 2

Compression:

Stored size: 322 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

2 entries across 2 versions & 1 rubygems

Version Path
evva-0.5.0 lib/evva/templates/kotlin/special_property_enums.kt
evva-0.4.4 lib/evva/templates/kotlin/special_property_enums.kt