Module: GoogleChart::Title
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
4 5 6 |
# File 'lib/google_chart/title.rb', line 4 def self.included(klass) klass.register!(:title) end |
Instance Method Details
#title ⇒ Object
12 13 14 |
# File 'lib/google_chart/title.rb', line 12 def title "chtt=#{@title}" if @title end |
#title=(title) ⇒ Object
8 9 10 |
# File 'lib/google_chart/title.rb', line 8 def title=(title) @title = CGI::escape(title) end |