Module: GoogleChart::Title

Included in:
BarChart, LineChart
Defined in:
lib/google_chart/title.rb

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

#titleObject



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