Class: PNG::Parser
- Inherits:
-
Object
- Object
- PNG::Parser
- Defined in:
- lib/spittle/png/parser.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.go!(file) ⇒ Object
3 4 5 6 7 |
# File 'lib/spittle/png/parser.rb', line 3 def self.go!(file) #TODO: Wanted to remove instance go! and use initialize, didn't work. #Weird Parser.new.go!(file) end |
Instance Method Details
#go!(file) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/spittle/png/parser.rb', line 8 def go!( file ) check_header( file ) while(not file.eof?) do parse_chunk(file) end [ @ihdr, @idat ] end |