lib/builder/xmlbase.rb in builder-3.2.3 vs lib/builder/xmlbase.rb in builder-3.2.4
- old
+ new
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
require 'builder/blankslate'
module Builder
@@ -50,10 +51,10 @@
attrs.merge!(arg)
when nil
attrs ||= {}
attrs.merge!({:nil => true}) if explicit_nil_handling?
else
- text ||= ''
+ text ||= ''.dup
text << arg.to_s
end
end
if block
unless text.nil?