class PutText::Parser::Base
Public Instance Methods
strings_from_file(path)
click to toggle source
Parse gettext strings from a file in the path. @param [String] path the path of the file to parse. @return [Array<POEntry>] an array of POEntry
objects extracted
from the given file.
# File lib/puttext/parser/base.rb, line 12 def strings_from_file(path) strings_from_source(File.read(path), filename: path) end