Module: SuiteRender::Pie
Instance Method Summary collapse
Instance Method Details
#launch ⇒ Object
19 20 21 |
# File 'lib/suiterender/pie.rb', line 19 def launch Launchy.open(@filename) end |
#render_pie_chart_html(filename) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/suiterender/pie.rb', line 9 def render_pie_chart_html(filename) @filename = filename html = pie_chart_html File.open(filename, 'w') do |file| file.puts html end self end |