Sha256: 6cfcd5b7dfb3959723c89b7f49800d724b5015ff587709e45afc64dc80d2ebf9
Contents?: true
Size: 467 Bytes
Versions: 6
Compression:
Stored size: 467 Bytes
Contents
module FileData # Container for Exif tag values class ExifData SECTIONS = { 0 => :image, 1 => :thumbnail }.freeze SECTIONS.each { |section| define_method(section[1]) { @hash[section[0]] } } def initialize @hash = SECTIONS.each_with_object({}) { |pair, hash| hash[pair[0]] = {} } end def add_tag(index, ifd_id, tag_id, tag_value) name = ExifTags.get_tag_name(ifd_id, tag_id) @hash[index][name] = tag_value end end end
Version data entries
6 entries across 6 versions & 1 rubygems