Class: ZPNG::Chunk::TEXT
- Inherits:
-
TextChunk
- Object
- ZPNG::Chunk
- TextChunk
- ZPNG::Chunk::TEXT
- Defined in:
- lib/zpng/text_chunk.rb
Constant Summary
Constants inherited from TextChunk
Constants inherited from ZPNG::Chunk
Instance Attribute Summary
Attributes inherited from TextChunk
Attributes inherited from ZPNG::Chunk
#crc, #data, #idx, #offset, #size, #type
Instance Method Summary collapse
-
#initialize(*args) ⇒ TEXT
constructor
A new instance of TEXT.
Methods inherited from TextChunk
Methods inherited from ZPNG::Chunk
#check, #crc_ok?, #export, #export_data, #fix_crc!, from_stream, #inspect, #valid?
Methods included from DeepCopyable
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 |