class Risu::Renderers::CSVRenderer
Public Class Methods
generate(output_file, &block)
click to toggle source
@TODO comment
# File lib/risu/renderers/csvrenderer.rb, line 28 def self.generate output_file, &block #csv = new(output_file, &block) return new(output_file, &block) end
new(output_file, &block)
click to toggle source
@TODO comment
# File lib/risu/renderers/csvrenderer.rb, line 35 def initialize output_file, &block @output_file = output_file instance_eval(&block) end
Public Instance Methods
text(text, *args)
click to toggle source
@TODO comment
# File lib/risu/renderers/csvrenderer.rb, line 42 def text text, *args File.open(@output_file, "a+") do |file| file.write text + "\n" end end