Module: Haml::MagicTranslations::RGetText::HamlParser
- Defined in:
- lib/haml/magic_translations/rgettext/haml_parser.rb
Overview
RGetText parser for Haml files
Example
GetText::RGetText.add_parser(Haml::MagicTranslations::RGetText::HamlParser)
GetText.update_pofiles(text_domain, files, app_version, )
Defined Under Namespace
Modules: RGetTextEngine Classes: Parser
Class Method Summary collapse
-
.parse(file, ary = []) ⇒ Object
:nodoc:.
-
.target?(file) ⇒ Boolean
:nodoc:.
Class Method Details
.parse(file, ary = []) ⇒ Object
:nodoc:
22 23 24 |
# File 'lib/haml/magic_translations/rgettext/haml_parser.rb', line 22 def parse(file, ary = []) # :nodoc: Parser.new(file).parse end |
.target?(file) ⇒ Boolean
:nodoc:
18 19 20 |
# File 'lib/haml/magic_translations/rgettext/haml_parser.rb', line 18 def target?(file) # :nodoc: File.extname(file) == '.haml' end |