Method: GetText::POEntry#initialize

Defined in:
lib/gettext/po_entry.rb

#initialize(type) ⇒ POEntry

Create the object. +type+ should be :normal, :plural, :msgctxt or :msgctxt_plural.



66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/gettext/po_entry.rb', line 66

def initialize(type)
  self.type = type
  @translator_comment = nil
  @extracted_comment = nil
  @references = []
  @flags = []
  @previous = nil
  @msgctxt = nil
  @msgid = nil
  @msgid_plural = nil
  @msgstr = nil
end