Class: ChunkyPNG::Chunk::End

Inherits:
Base
  • Object
show all
Defined in:
lib/chunky_png/chunk.rb

Instance Attribute Summary

Attributes inherited from Base

#type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#write, #write_with_crc

Constructor Details

#initializeEnd

Returns a new instance of End.



96
97
98
# File 'lib/chunky_png/chunk.rb', line 96

def initialize
  super('IEND')
end

Class Method Details

.read(type, content) ⇒ Object



100
101
102
103
# File 'lib/chunky_png/chunk.rb', line 100

def self.read(type, content)
  raise 'The IEND chunk should be empty!' if content != ''
  self.new
end

Instance Method Details

#contentObject



105
106
107
# File 'lib/chunky_png/chunk.rb', line 105

def content
  ''
end