Sha256: 722eb50a737321b798ceb1e444111cb2b5fd7566dedb629962ea7735fe2cdec9
Contents?: true
Size: 614 Bytes
Versions: 32
Compression:
Stored size: 614 Bytes
Contents
module Effective module EffectiveDatatable module Dsl module Charts # Instance Methods inside the charts do .. end block def chart(name, type, options = {}, &block) options[:title] ||= (options[:label] || name.to_s.titleize) options[:legend] = 'none' if options[:legend] == false (@charts ||= HashWithIndifferentAccess.new)[name] = { name: name, type: type, partial: options.delete(:partial), options: options, block: (block if block_given?) } end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems