Module: CIAT::IO
- Included in:
- Feedback::HtmlFeedback, Feedback::HtmlFeedbackBuilder, SuiteBuilder, TestElement
- Defined in:
- lib/ciat/io.rb
Constant Summary collapse
- OUTPUT_FOLDER =
"temp"
- REPORT_FILENAME =
"report.html"
Instance Method Summary collapse
Instance Method Details
#read_file(filename) ⇒ Object
13 14 15 |
# File 'lib/ciat/io.rb', line 13 def read_file(filename) File.read(filename) end |
#write_file(filename, content) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/ciat/io.rb', line 6 def write_file(filename, content) FileUtils.mkdir_p(File.dirname(filename)) File.open(filename, "w") do |file| file.write content end end |