class ChunkyPNG::Canvas

def inspect

Other tags:
    Private: -

Returns:
  • (String) - A nicely formatted string representation of this canvas.
def inspect
  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