Class: PutText::Parser::Base
- Inherits:
-
Object
- Object
- PutText::Parser::Base
- Defined in:
- lib/puttext/parser/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#strings_from_file(path) ⇒ Array<POEntry>
Parse gettext strings from a file in the path.
-
#strings_from_source(source, opts) ⇒ Array<POEntry>
Parse gettext strings from a given snippet of source code.
Instance Method Details
#strings_from_file(path) ⇒ Array<POEntry>
Parse gettext strings from a file in the path.
12 13 14 |
# File 'lib/puttext/parser/base.rb', line 12 def strings_from_file(path) strings_from_source(File.read(path), filename: path) end |
#strings_from_source(source, opts) ⇒ Array<POEntry>
Parse gettext strings from a given snippet of source code.
|
# File 'lib/puttext/parser/base.rb', line 16
|