Sha256: 6299b1364c3fa72541a9f39efa7c16185d0eebdee2a84e83a1bfe465d5bbf2e8
Contents?: true
Size: 700 Bytes
Versions: 1
Compression:
Stored size: 700 Bytes
Contents
----------------------------------------------- -- class: <%= name %> <%= label %> ----------------------------------------------- -- created at: <%= DateTime.now.strftime("%F %T") %> local <%= super_class %> = require '<%= super_class %>' local <%= name %> = {} local <%= name %>MT = {__index = <%= name %>} -- erd_inherit: <%= super_class %> setmetatable(<%= name %>, {__index = <%= super_class %>}) 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_with_super.lua.erb |