Class: GettextI18nRails::HamletParser

Inherits:
BaseParser
  • Object
show all
Defined in:
lib/gettext_i18n_rails/hamlet_parser.rb

Class Method Summary collapse

Methods inherited from BaseParser

load_library, parse, target?

Class Method Details

.convert_to_code(text) ⇒ Object



9
10
11
# File 'lib/gettext_i18n_rails/hamlet_parser.rb', line 9

def self.convert_to_code(text)
  Hamlet::Engine.new.call(text)
end

.extensionObject



5
6
7
# File 'lib/gettext_i18n_rails/hamlet_parser.rb', line 5

def self.extension
  "hamlet"
end