The Generic chunk type will read the content from the chunk as it, and will write it back as it was read.
The attribute to store the content from the chunk, which gets written by
the write
method.
# File lib/chunky_png/chunk.rb, line 86 def initialize(type, content = '') super(type, :content => content) end
Creates an instance, given the chunk's type and content. @param type [String] The four character chunk type indicator. @param content [String] The content read from the chunk. @return [ChunkyPNG::Chunk::Generic] The new chunk instance.
# File lib/chunky_png/chunk.rb, line 94 def self.read(type, content) new(type, content) end