Method: Horoscope::Horo#create_chart

Defined in:
lib/horoscope.rb

#create_chart(options = {}) ⇒ Object



82
83
84
85
86
87
88
89
90
# File 'lib/horoscope.rb', line 82

def create_chart(options= {})
  compute unless @computed
  case options[:format]
  when :html
    draw_chart_as_html
  else
    draw_chart_as_png
  end
end