class ChunkyPNG::Chunk::End

def self.read(type, content)

Raises:
  • (RuntimeError) - Raises an exception if the content was not empty.

Returns:
  • (ChunkyPNG::Chunk::End) - The new End chunk instance.

Parameters:
  • content (String) -- The content read from the chunk. Should be empty.
  • type (String) -- The four character chunk type indicator (= "IEND").
def self.read(type, content)
  raise 'The IEND chunk should be empty!' if content != ''
  self.new
end