class ChunkyPNG::Chunk::End
contain any data.
The End (IEND) chunk indicates the last chunk of a PNG stream. It does not
def self.read(type, content)
-
(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
def content
-
("")
- An empty string.
def content '' end
def initialize
def initialize super('IEND') end