Sha256: cb5a083b83a273e7069a950f0634e8d49f74ee8473d5843b18ebc0dd0f6ebec5
Contents?: true
Size: 399 Bytes
Versions: 20
Compression:
Stored size: 399 Bytes
Contents
require_relative "dataset.rb" module ChartJS class SaveFile def initialize(path, html: false) path(path) @html = html if html end def path(value = nil) return @path if value.nil? @path = value end def save!(path: @path, html: @html) File.open(path, "w") do |file| file.write(html) file.close end end end end
Version data entries
20 entries across 5 versions & 1 rubygems