Module: GettextI18nRailsJs::Parser::Handlebars

Extended by:
Handlebars
Includes:
Base
Included in:
Handlebars
Defined in:
lib/gettext_i18n_rails_js/parser/handlebars.rb

Instance Attribute Summary

Attributes included from Base

#gettext_function

Instance Method Summary collapse

Methods included from Base

#parse

Instance Method Details

#target?(file) ⇒ Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/gettext_i18n_rails_js/parser/handlebars.rb', line 37

def target?(file)
  file.match(/\.(?:handlebars|hbs|mustache)(?:\.erb)?\Z/)
end