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

Instance Method Details

#inspectObject



303
304
305
# File 'lib/pnm/image.rb', line 303

def inspect
  inspect_string_with_maxgray
end

#typeObject



299
300
301
# File 'lib/pnm/image.rb', line 299

def type
  :pgm
end