Module: GoogleChart::Color
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 |
# File 'lib/google_chart/color.rb', line 4 def self.included(klass) klass.register!(:color) end |
Instance Method Details
#color ⇒ Object
12 13 14 |
# File 'lib/google_chart/color.rb', line 12 def color "chco=#{@color.join(',')}" if @color end |
#color=(color) ⇒ Object
8 9 10 |
# File 'lib/google_chart/color.rb', line 8 def color=(color) @color = [color].flatten end |