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.
90 91 92 93 94 |
# File 'lib/deface/haml_converter.rb', line 90 def initialize(template, = {}) [:compiler_class] = Compiler [:parser_class] = Parser super(template, ) end |
Instance Method Details
#result ⇒ Object
100 101 102 |
# File 'lib/deface/haml_converter.rb', line 100 def result Deface::Parser.undo_erb_markup! String.new(render) end |