Class: Glimmer::XML::HTMLToGlimmerConverter
- Inherits:
-
Object
- Object
- Glimmer::XML::HTMLToGlimmerConverter
- Defined in:
- lib/glimmer/xml/html_to_glimmer_converter.rb
Instance Method Summary collapse
Instance Method Details
#convert(html) ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/glimmer/xml/html_to_glimmer_converter.rb', line 32 def convert(html) glimmer = '' glimmer += "require 'glimmer-dsl-xml'\n\n" glimmer += "include Glimmer\n\n" glimmer += "html_document = xml {\n" glimmer += indent_lines(convert_html(html)) glimmer += "}\n\n" glimmer += "puts html_document.to_s\n" end |