class Madman::Commands::Render
Public Instance Methods
run()
click to toggle source
# File lib/madman/commands/render.rb, line 23 def run infile = args['FILE'] outfile = args['--save'] renderer = args['--github'] ? :github : :default doc = Madman::Document.from_file infile output = doc.render renderer if outfile File.write outfile, output say "Saved !txtgrn!#{outfile}" else puts output end end