lib/coderay/encoders/encoder.rb in coderay-1.1.1 vs lib/coderay/encoders/encoder.rb in coderay-1.1.2.rc1
- old
+ new
@@ -144,10 +144,10 @@
def setup options
@out = get_output(options)
end
def get_output options
- options[:out] || ''
+ options[:out] || ''.dup
end
# Append data.to_s to the output. Returns the argument.
def output data
@out << data.to_s