Method: GetTextSlim::Parser.parse

Defined in:
lib/gettext-slim/parser.rb

.parse(path, options = {}) ⇒ Array<POEntry>

Parses Slim file located at path.

This is a short cut method. It equals to new(path, options).parse.

Returns:

  • (Array<POEntry>)

    Extracted messages

See Also:



49
50
51
52
# File 'lib/gettext-slim/parser.rb', line 49

def parse(path, options={})
  parser = new(path, options)
  parser.parse
end