Sha256: 425b722315d88a8c23c8e31fa7cc006761f9c9d9b4fa85823c91e8d83e4f1739
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
----------------------------------------------- -- class: <%= name %> <%= label %> ----------------------------------------------- -- created at: <%= DateTime.now.strftime("%F %T") %> local <%= name %> = {} local <%= name %>MT = {__index = <%= name %>} function <%= name %>.new(opt) local <%= name %>Instance = opt or {} assert(type(<%= name %>Instance) == 'table', 'the parameter passed to new() must be a table.') setmetatable(<%= name %>Instance, <%= name %>MT) return <%= name %>Instance end return <%= name %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cbt-0.0.1 | templates/Class.lua.erb |