Class: PNM::PPMImage

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

Overview

Class for PPM 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



365
366
367
# File 'lib/pnm/image.rb', line 365

def inspect
  inspect_string_with_maxgray
end

#typeObject



361
362
363
# File 'lib/pnm/image.rb', line 361

def type
  :ppm
end