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, options)

Defined Under Namespace

Modules: RGetTextEngine Classes: Parser

Class Method Summary collapse

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:

Returns:

  • (Boolean)


18
19
20
# File 'lib/haml/magic_translations/rgettext/haml_parser.rb', line 18

def target?(file) # :nodoc:
  File.extname(file) == '.haml'
end