Class: Deface::HamlConverter
- Inherits:
-
Haml::Engine
- Object
- Haml::Engine
- Deface::HamlConverter
- Includes:
- HamlCompilerMethods, HamlParserMethods
- Defined in:
- lib/deface/haml_converter.rb
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(template, options = {}) ⇒ HamlConverter
constructor
A new instance of HamlConverter.
- #result ⇒ Object
Methods included from HamlCompilerMethods
Methods included from HamlParserMethods
#parse_new_attributes, #parse_old_attributes
Constructor Details
#initialize(template, options = {}) ⇒ HamlConverter
Returns a new instance of HamlConverter.
91 92 93 94 95 |
# File 'lib/deface/haml_converter.rb', line 91 def initialize(template, = {}) [:compiler_class] = Compiler [:parser_class] = Parser super(template, ) end |
Instance Method Details
#result ⇒ Object
101 102 103 |
# File 'lib/deface/haml_converter.rb', line 101 def result Deface::Parser.undo_erb_markup! String.new(render) end |