Class: Highcharts::Colors
Instance Attribute Summary collapse
-
#colors ⇒ Object
readonly
Returns the value of attribute colors.
Attributes inherited from Base
#default, #options, #skip_quotation, #suboptions
Instance Method Summary collapse
-
#initialize(options) ⇒ Colors
constructor
A new instance of Colors.
- #to_json ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options) ⇒ Colors
Returns a new instance of Colors.
6 7 8 |
# File 'lib/highcharts/color.rb', line 6 def initialize() @colors = Array.wrap() end |
Instance Attribute Details
#colors ⇒ Object (readonly)
Returns the value of attribute colors.
4 5 6 |
# File 'lib/highcharts/color.rb', line 4 def colors @colors end |
Instance Method Details
#to_json ⇒ Object
10 11 12 |
# File 'lib/highcharts/color.rb', line 10 def to_json colors.to_json end |