Class: ChartJS::Options
- Inherits:
-
Object
- Object
- ChartJS::Options
- 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
- #build(&block) ⇒ Object
-
#initialize ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize ⇒ Options
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 |