Class: ChartJS::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/chart_js/chart/bar_chart/opts.rb,
lib/chart_js/chart/line_chart/opts.rb,
lib/chart_js/chart/radar_chart/opts.rb

Instance Method Summary collapse

Constructor Details

#initializeOptions

Returns a new instance of Options.



7
8
9
# File 'lib/chart_js/chart/bar_chart/opts.rb', line 7

def initialize
  @container = Hash.new
end

Instance Method Details

#build(&block) ⇒ Object



11
12
13
14
# File 'lib/chart_js/chart/bar_chart/opts.rb', line 11

def build(&block)
  instance_eval(&block)
  @container
end