Class: FastGettext::PoFile
Overview
Responsibility:
- abstract po files for Po Repository
Constant Summary
Constants inherited from MoFile
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file, options = {}) ⇒ PoFile
constructor
A new instance of PoFile.
Methods inherited from MoFile
#[], #data, empty, #plural, #pluralisation_rule
Constructor Details
#initialize(file, options = {}) ⇒ PoFile
Returns a new instance of PoFile.
6 7 8 9 |
# File 'lib/fast_gettext/po_file.rb', line 6 def initialize(file, ={}) = super end |
Class Method Details
.to_mo_file(file, options = {}) ⇒ Object
11 12 13 |
# File 'lib/fast_gettext/po_file.rb', line 11 def self.to_mo_file(file, ={}) MoFile.new(parse_po_file(file, )) end |