Sha256: ca0f6b581d968c85f9adbc7a21b49b306a45236caea123ce3c27ae395c5558b2

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

# Encoding: utf-8

<%
spacing = ''
@class_parts[0..-2].each do |namespace|
%><%= spacing + 'module ' + namespace %>
<%
spacing+= '  '
end %><%= spacing + 'class ' + @class_parts.last %>

<%= spacing + 'end' %><% loop do
    l = spacing.length - 2
    spacing = l >= 0 ? ' '*l : ''
%>
<%= spacing + 'end' %><%
break if l == 0
end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blam-1.2.0 lib/templates/source.tt
blam-1.1.0 lib/templates/source.tt
blam-1.0.0 lib/templates/source.tt