Method: GetText::ErbParser.parse

Defined in:
lib/gettext/tools/parser/erb.rb

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

Parses eRuby script located at path.

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

Returns:

  • (Array<POEntry>)

    Extracted messages

See Also:



45
46
47
48
# File 'lib/gettext/tools/parser/erb.rb', line 45

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