lib/chunky_png/chunk.rb in chunky_png-1.3.12 vs lib/chunky_png/chunk.rb in chunky_png-1.3.13

- old
+ new

@@ -1,5 +1,7 @@ +# frozen-string-literal: true + module ChunkyPNG # A PNG datastream consists of multiple chunks. This module, and the classes # contained within, help with handling these chunks. It supports both reading # and writing chunks. # @@ -184,10 +186,10 @@ end # Returns an empty string, because this chunk should always be empty. # @return [""] An empty string. def content - ChunkyPNG::Datastream.empty_bytearray + "".b end end # The Palette (PLTE) chunk contains the image's palette, i.e. the # 8-bit RGB colors this image is using.