Method: ChartJS::Chart#build
- Defined in:
- lib/chart_js/chart/chart.rb
#build(&block) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/chart_js/chart/chart.rb', line 22 def build(&block) instance_eval(&block) if @file f = SaveFile.new(@file, html: to_html) f.save! end self end |