Sha256: f2319c53d304b14cd46353f22a68063ba5241667dc72a61b3d318ca1e1d02802

Contents?: true

Size: 364 Bytes

Versions: 4

Compression:

Stored size: 364 Bytes

Contents

<%=
  @module_statements = module_name_parts.reverse.reduce(['# Your code here']) do |a, e|
    # indent accumulator
    a = a.map { |l| '  ' + l }

    # wrap in module clause
    ["module #{e}", *a, "end # module #{e}"]
  end
  @module_statements.join("\n")
%>

require_relative '<%= file_basename %>/application'
require_relative '<%= file_basename %>/version'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mimi-0.1.4 lib/mimi/cli/template/lib/file_name.rb
mimi-0.1.3 lib/mimi/cli/template/lib/file_name.rb
mimi-0.1.1 lib/mimi/cli/template/lib/file_name.rb
mimi-0.1.0 lib/mimi/cli/template/lib/file_name.rb