lib/multi_exiftool/values.rb
# Generates a hash representation of this instance
# with original tag names es keys and converted
# values as values
Generates a hash representation of this instance
with original tag names es keys and converted
values as values
Generates a hash representation of this instance with original tag names es keys and converted values as values
def to_h
      @values.inject(Hash.new) do |h, a|
        tag, val = a
        h[Values.tag_map[tag]] = convert(Values.unify_tag(tag), val)
        h
      end
    end
def to_h @values . inject ( Hash . new ) do | h , a | tag , val = a h [ Values . tag_map [ tag ] ] = convert ( Values . unify_tag ( tag ) , val ) h end end
Generates a hash representation of this instance
with original tag names es keys and converted
values as values
Generates a hash representation of this instance with original tag names es keys and converted values as values