Class: HtmlFrontend
Class Method Summary collapse
Class Method Details
.process_layer(text, layer) ⇒ Object
22 23 24 |
# File 'lib/frontends/html_frontend.rb', line 22 def process_layer(text, layer) text.html_colorize_range(layer.range, layer.color) end |
.run(file) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/frontends/html_frontend.rb', line 13 def run(file) puts "<html> <head><title>#{file} - Augment</title></head> <body> #{super(file).gsub("\n", "<br />").gsub(' ', ' ')} </body> </html>" end |