Class: ZPNG::Chunk::TEXT

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

Constant Summary

Constants inherited from TextChunk

TextChunk::INTEGER_CLASS

Constants inherited from ZPNG::Chunk

KNOWN_TYPES, VALID_SIZE_RANGE

Instance Attribute Summary

Attributes inherited from TextChunk

#keyword, #text

Attributes inherited from ZPNG::Chunk

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

Instance Method Summary collapse

Methods inherited from TextChunk

#inspect, #to_hash

Methods inherited from ZPNG::Chunk

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

Methods included from DeepCopyable

#deep_copy

Constructor Details

#initialize(*args) ⇒ TEXT

Returns a new instance of TEXT.



36
37
38
39
# File 'lib/zpng/text_chunk.rb', line 36

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