Module: TChart::TeXWriter

Defined in:
lib/tchart/process/tex_writer.rb

Overview

Responsible for writing TeX code to a file.

Class Method Summary collapse

Class Method Details

.write(tex_filename, tex_content) ⇒ Object



8
9
10
# File 'lib/tchart/process/tex_writer.rb', line 8

def self.write(tex_filename, tex_content)
  File.open(tex_filename, 'w') {|f| f.puts(tex_content)}
end