module PoParser
Constants
- COMMENTS_LABELS
- ENTRIES_LABELS
- HEADER_LABELS
- LABELS
- VERSION
Public Class Methods
parse(payload)
click to toggle source
# File lib/poparser.rb, line 18 def parse(payload) if File.exist?(payload) Kernel.warn 'DEPRICATION WARNING: `parse` only accepts content of a '\ 'PO file as a string and this behaviour will be removed on next '\ 'major release. Use `parse_file` instead.' parse_file(payload) else Tokenizer.new.extract(payload) end end
parse_file(path)
click to toggle source
# File lib/poparser.rb, line 29 def parse_file(path) Tokenizer.new(true).extract(path) end