Sha256: 1fe6cb2b79222a479fb822708af8c864fc0d3a59ab889041c9503cfb4456eeec
Contents?: true
Size: 353 Bytes
Versions: 2
Compression:
Stored size: 353 Bytes
Contents
module ChartJS class Opts def initialize @container = Hash.new end def build(&block) instance_eval(&block) @container end def cutout(value = nil) return @container['cutoutPercentage'] if value.nil? @container['cutoutPercentage'] = value end def to_h @container end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chart_js-1.1.1 | lib/chart_js/chart/opts.rb |
chart_js-1.1.0 | lib/chart_js/chart/opts.rb |