Method: GetText::POEntry#to_s
- Defined in:
- lib/gettext/po_entry.rb
#to_s(options = {}) ⇒ Object
Format the po entry in PO format.
171 172 173 174 175 176 |
# File 'lib/gettext/po_entry.rb', line 171 def to_s(={}) raise(NoMsgidError, "msgid is nil.") unless @msgid formatter = Formatter.new(self, ) formatter.format end |