Class: IPTC::JPEG::Markers::COMMarker

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

Overview

COMMarker

The COM Marker, contains comments

Instance Attribute Summary collapse

Attributes inherited from IPTC::JPEG::Marker

#prefix, #values

Instance Method Summary collapse

Methods inherited from IPTC::JPEG::Marker

NewMarker, #initialize, #l, #properties, #read, #to_binary, #valid?

Constructor Details

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

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



23
24
25
# File 'lib/iptc/jpeg/markers.rb', line 23

def content
  @content
end

Instance Method Details

#[](item) ⇒ Object

def []=(key,value)

    if @content != value
        @content = value
        @dirty = true
    end
end


37
38
39
# File 'lib/iptc/jpeg/markers.rb', line 37

def [](item)
  return @content
end

#parseObject



24
25
26
27
28
29
30
# File 'lib/iptc/jpeg/markers.rb', line 24

def parse
  l "COM Marker Parsed"
  @content = read(@size)
  @dirty = false

  @values['COM/COM']=@content
end