Class: FileData::Ifd

Inherits:
Object
  • Object
show all
Includes:
TagEnumerator
Defined in:
lib/file_data/formats/exif/ifd.rb

Overview

Represents the tags present in any ifd (ordinal or extra)

Constant Summary

Constants included from TagEnumerator

TagEnumerator::TAG_RECORD_SIZE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TagEnumerator

#read_num_tags, #tags_enum, #tags_size

Constructor Details

#initialize(exif_stream) ⇒ Ifd

Returns a new instance of Ifd.



31
32
33
# File 'lib/file_data/formats/exif/ifd.rb', line 31

def initialize(exif_stream)
  @stream = exif_stream
end

Instance Attribute Details

#streamObject

Returns the value of attribute stream.



29
30
31
# File 'lib/file_data/formats/exif/ifd.rb', line 29

def stream
  @stream
end

Instance Method Details

#tagsObject



35
36
37
# File 'lib/file_data/formats/exif/ifd.rb', line 35

def tags
  tags_enum
end