Class: Prezio::Converter
- Inherits:
-
Object
- Object
- Prezio::Converter
- Defined in:
- lib/prezio/converter.rb
Class Method Summary collapse
Class Method Details
.convert(template_file, presentation_file) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/prezio/converter.rb', line 3 def self.convert(template_file, presentation_file) content = File.read(template_file) content = SyntaxHighlighter.highlight(content) content = DZSlidesWrapper.wrap(content) File.open(presentation_file, "w") {|f| f.write(content) } end |