Method: Xmindoc::Core#convert

Defined in:
lib/xmindoc.rb

#convertObject

Convert and process XML with Pandoc at once



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/xmindoc.rb', line 40

def convert()
  xml_to_html()
  html_to_pandoc()


  if @option[:file_output] == ""
    # Without -o option
    puts @result
  else
    # Using option: -o filename
    File.open(@option[:file_output],"w") do |f|
      f.write(@result)
    end
  end

  return @result
end