class Marksman::Writer
Public Class Methods
new(file, output_directory, theme = nil)
click to toggle source
# File lib/marksman/writer.rb, line 4 def initialize(file, output_directory, theme = nil) @file = file @output_directory = output_directory @theme = theme end
Public Instance Methods
generate()
click to toggle source
# File lib/marksman/writer.rb, line 10 def generate presentation = Marksman::Parser.new.parse(@file) presentation.theme = Theme.new(@theme) if @theme Marksman::Converter.new(presentation).write(@output_directory) presentation end