Class: ExifTagger::Tag::Keywords

Inherits:
Tag
  • Object
show all
Defined in:
lib/phtools/exif_tagger/tags/keywords.rb

Overview

MWG:Keywords, string+, List of Strings

= IPTC:Keywords, XMP-dc:Subject

Constant Summary collapse

MAX_BYTESIZE =
64
EXIFTOOL_TAGS =
%w(Keywords Subject)

Instance Attribute Summary

Attributes inherited from Tag

#errors, #force_write, #info, #value, #value_invalid, #warnings, #write_script_lines

Instance Method Summary collapse

Methods inherited from Tag

#<=>, #tag_id, #tag_name, #to_s, #to_write_script, #valid?

Constructor Details

#initialize(value_raw = []) ⇒ Keywords

Returns a new instance of Keywords.



15
16
17
# File 'lib/phtools/exif_tagger/tags/keywords.rb', line 15

def initialize(value_raw = [])
  super(Array(value_raw).flatten.map { |i| i.to_s })
end

Instance Method Details

#check_for_warnings(original_values: {}) ⇒ Object



19
20
21
22
# File 'lib/phtools/exif_tagger/tags/keywords.rb', line 19

def check_for_warnings(original_values: {})
  @warnings = []
  @warnings.freeze
end