@@ -150,7 +150,7 module SVG | |||
|
150 | 150 | :add_popups =>false, |
|
151 | 151 | }) |
|
152 | 152 | |
|
153 |
set_defaults if |
|
|
153 | set_defaults if respond_to? :set_defaults | |
|
154 | 154 | |
|
155 | 155 | init_with config |
|
156 | 156 | end |
@@ -195,7 +195,7 module SVG | |||
|
195 | 195 | def burn |
|
196 | 196 | raise "No data available" unless @data.size > 0 |
|
197 | 197 | |
|
198 |
calculations if |
|
|
198 | calculations if respond_to? :calculations | |
|
199 | 199 | |
|
200 | 200 | start_svg |
|
201 | 201 | calculate_graph_dimensions |
@@ -355,7 +355,7 module SVG | |||
|
355 | 355 | # by subclasses. |
|
356 | 356 | def init_with config |
|
357 | 357 | config.each { |key, value| |
|
358 |
self.send( |
|
|
358 | self.send((key.to_s+"=").to_sym, value ) if respond_to? key.to_sym | |
|
359 | 359 | } |
|
360 | 360 | end |
|
361 | 361 |
General Comments 0
You need to be logged in to leave comments.
Login now