Method: ALaChart::ClassMethods#chart

Defined in:
lib/a_la_chart/a_la_chart.rb

#chart(*types, &block) ⇒ Object



117
118
119
120
121
122
123
# File 'lib/a_la_chart/a_la_chart.rb', line 117

def chart(*types, &block)
  for type in types
    define_method("set_chart_#{type}") do
      block.call if block
    end
  end
end