Class: IPTC::JPEG::Markers::COMMarker
- Inherits:
-
IPTC::JPEG::Marker
- Object
- IPTC::JPEG::Marker
- IPTC::JPEG::Markers::COMMarker
- Defined in:
- lib/iptc/jpeg/markers.rb
Overview
COMMarker
The COM Marker, contains comments
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Attributes inherited from IPTC::JPEG::Marker
Instance Method Summary collapse
-
#[](item) ⇒ Object
def []=(key,value) if @content != value @content = value @dirty = true end end.
- #parse ⇒ Object
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
#content ⇒ Object (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 |
#parse ⇒ Object
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 |