Class: IPTC::JPEG::Markers::SOIMarker

Inherits:
IPTC::JPEG::Marker show all
Defined in:
lib/iptc/jpeg/markers.rb

Overview

SOIMarker

The Start Of Image Marker

Instance Attribute Summary

Attributes inherited from IPTC::JPEG::Marker

#prefix, #values

Instance Method Summary collapse

Methods inherited from IPTC::JPEG::Marker

NewMarker, #initialize, #l, #parse, #properties, #read, #to_binary

Constructor Details

This class inherits a constructor from IPTC::JPEG::Marker

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/iptc/jpeg/markers.rb', line 16

def valid?
  return read(5)=="JFIF\0"
end