# File temp/Graph/Graph.rb, line 121 def burn raise "No data available" unless @data.size > 0 calculations if methods.include? 'calculations' raise "#{self.class.name} must have a "+ "get_svg method." unless methods.include?("get_svg") data = get_svg if @config[:compress] if @@__have_zlib inp, out = IO.pipe gz = Zlib::GzipWriter.new( out ) gz.write data gz.close data = inp.read else data << "<!-- Ruby Zlib not available for SVGZ -->"; end end return data end