##// END OF EJS Templates
Fixes SVG lib for ruby1.9....
Jean-Philippe Lang -
r2903:87d14dea105e
parent child
Show More
@@ -150,7 +150,7 module SVG
150 150 :add_popups =>false,
151 151 })
152 152
153 set_defaults if methods.include? "set_defaults"
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 methods.include? 'calculations'
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( key.to_s+"=", value ) if methods.include? key.to_s
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