Method: RDoc::Generator::POT::POEntry#merge

Defined in:
lib/rdoc/generator/pot/po_entry.rb

#merge(other_entry) ⇒ Object

Merges the PO entry with other_entry.



55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/rdoc/generator/pot/po_entry.rb', line 55

def merge other_entry
  options = {
    :extracted_comment  => merge_string(@extracted_comment,
                                        other_entry.extracted_comment),
    :translator_comment => merge_string(@translator_comment,
                                        other_entry.translator_comment),
    :references         => merge_array(@references,
                                       other_entry.references),
    :flags              => merge_array(@flags,
                                       other_entry.flags),
  }
  self.class.new(@msgid, options)
end