lib/massive_sitemap/builder/base.rb in massive_sitemap-2.0.0.rc6 vs lib/massive_sitemap/builder/base.rb in massive_sitemap-2.0.0.rc7
- old
+ new
@@ -1,5 +1,7 @@
+# Copyright (c) 2012, SoundCloud Ltd., Tobias Bielohlawek
+
# MassiveSitemap Builder
# The purpose of a builder is create the XML files: continaing header and all other tag (with attributes).
#
module MassiveSitemap
module Builder
@@ -89,10 +91,9 @@
@writer.print "\n" + ' ' * @options[:indent_by] * @opened_tags.size
@opened_tags << name
@writer.print "<#{name}#{attrs}>"
end
- private
def process(&block)
if block
instance_eval(&block)
close!
end