Class: ZPNG::Chunk::TEXT

Inherits:
TextChunk show all
Defined in:
lib/zpng/text_chunk.rb

Instance Attribute Summary

Attributes inherited from TextChunk

#keyword, #text

Attributes inherited from ZPNG::Chunk

#crc, #data, #idx, #size, #type

Instance Method Summary collapse

Methods inherited from TextChunk

#inspect, #to_hash

Methods inherited from ZPNG::Chunk

#crc_ok?, #export, #export_data, #fix_crc!, from_stream, #inspect

Methods included from DeepCopyable

#deep_copy

Constructor Details

#initialize(*args) ⇒ TEXT

Returns a new instance of TEXT.



30
31
32
33
# File 'lib/zpng/text_chunk.rb', line 30

def initialize *args
  super
  @keyword,@text = data.unpack('Z*a*')
end