lib/chunky_png/canvas.rb in chunky_png-1.3.13 vs lib/chunky_png/canvas.rb in chunky_png-1.3.14
- old
+ new
@@ -295,10 +295,10 @@
# Alternative implementation of the inspect method.
# @return [String] A nicely formatted string representation of this canvas.
# @private
def inspect
- inspected = "<#{self.class.name} #{width}x#{height} ["
+ inspected = +"<#{self.class.name} #{width}x#{height} ["
for y in 0...height
inspected << "\n\t[" << row(y).map { |p| ChunkyPNG::Color.to_hex(p) }.join(" ") << "]"
end
inspected << "\n]>"
end