lib/dopstick/generator/gem/generator.rb in dopstick-0.0.5 vs lib/dopstick/generator/gem/generator.rb in dopstick-0.0.6
- old
+ new
@@ -109,19 +109,19 @@
run "git add .", capture: true
end
end
no_commands do
- def render_tree(skip_content_spaces = false, &block)
+ def render_tree(skip_content_spaces = false)
content = []
options.namespace_names.each_with_index do |name, count|
content << (" " * count) + "module #{name}"
end
spacer = skip_content_spaces ? "" : " "
- content << (spacer * options.namespace_size) + block.call
+ content << (spacer * options.namespace_size) + yield
(options.namespace_size - 1).downto(0) do |count|
content << "#{' ' * count}end"
end