Class: PNM::PGMImage

Inherits:
Image
  • Object
show all
Defined in:
lib/pnm/image.rb

Overview

Class for PGM images. See the Image class for documentation.

Instance Attribute Summary

Attributes inherited from Image

#comment, #height, #maxgray, #pixels, #width

Instance Method Summary collapse

Methods inherited from Image

#==, create, #info, #write, #write_with_extension

Instance Method Details

#inspectObject



334
335
336
# File 'lib/pnm/image.rb', line 334

def inspect
  inspect_string_with_maxgray
end

#typeObject



330
331
332
# File 'lib/pnm/image.rb', line 330

def type
  :pgm
end