Sha256: b2fd9652870c29eeea3bb94cd49c0ba963e088e9df50268bf643999388aaaf9f

Contents?: true

Size: 244 Bytes

Versions: 6

Compression:

Stored size: 244 Bytes

Contents

<%- enums.each_with_index do |enum, index| -%>
enum <%= enum[:name] %>: String {
	<%- enum[:values].each do |v| -%>
	case <%= v[:case_name] %> = "<%= v[:value ] %>"
	<%- end -%>
}
<%- unless index == enums.count - 1 -%>

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
evva-0.5.0 lib/evva/templates/swift/special_property_enums.swift
evva-0.4.4 lib/evva/templates/swift/special_property_enums.swift
evva-0.4.3 lib/evva/templates/swift/special_property_enums.swift
evva-0.4.2 lib/evva/templates/swift/special_property_enums.swift
evva-0.4.1 lib/evva/templates/swift/special_property_enums.swift
evva-0.4.0 lib/evva/templates/swift/special_property_enums.swift