Method: GetText::POEntry#==

Defined in:
lib/gettext/po_entry.rb

#==(other) ⇒ Object

Checks if the self has same attributes as other.



111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/gettext/po_entry.rb', line 111

def ==(other)
  not other.nil? and
    type == other.type and
    msgid == other.msgid and
    msgstr == other.msgstr and
    msgid_plural == other.msgid_plural and
    separator == other.separator and
    msgctxt == other.msgctxt and
    translator_comment == other.translator_comment and
    extracted_comment == other.extracted_comment and
    references == other.references and
    flags == other.flags and
    previous == other.previous and
    comment == other.comment
end