Sha256: 477a28029e5c26a423aa873758e1224ca480e32def892f6ccbcffd1eded5d214
Contents?: true
Size: 457 Bytes
Versions: 3
Compression:
Stored size: 457 Bytes
Contents
<%# This ERB template uses Ruby to generate Ruby. -%> module Lignite <% yml["enums"].each do |ename, edata| -%> # enum: <%= ename%> <% edesc = edata["desc"] -%> <% if edesc -%> # <%= edesc %> <% end -%> <% members = edata["members"] -%> <% members.each do |mname, mdata| -%> <% mdesc = mdata["desc"] -%> <% if mdesc -%> # <%= mdesc %> <% end -%> <%= mname %> = <%= mdata["value"].inspect %> <% end -%> <% end -%> # . end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lignite-0.6.0 | lib/lignite/enums.rb.erb |
lignite-0.5.0 | lib/lignite/enums.rb.erb |
lignite-0.4.0 | lib/lignite/enums.rb.erb |