class ChunkyPNG::Chunk::Base
def initialize(type, attributes = {})
-
attributes
(Hash
) -- A hash of attributes to set on this chunk. -
type
(String
) -- The four character chunk type indicator.
def initialize(type, attributes = {}) self.type = type attributes.each { |k, v| send("#{k}=", v) } end