From c09be6b108c5ee8ba821c0134baef5c8311364fc Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: References: From: Alexey I. Froloff Date: Sat, 17 Oct 2009 22:18:42 +0400 Subject: [PATCH 03/11] Object#methods returns Array of Symbols. Signed-off-by: Alexey I. Froloff --- lib/SVG/Graph/Graph.rb | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/SVG/Graph/Graph.rb b/lib/SVG/Graph/Graph.rb index c188ae5..dec663f 100644 --- a/lib/SVG/Graph/Graph.rb +++ b/lib/SVG/Graph/Graph.rb @@ -150,7 +150,7 @@ module SVG :add_popups =>false, }) - set_defaults if methods.include? "set_defaults" + set_defaults if methods.include? :set_defaults init_with config end @@ -195,7 +195,7 @@ module SVG def burn raise "No data available" unless @data.size > 0 - calculations if methods.include? 'calculations' + calculations if methods.include? :calculations start_svg calculate_graph_dimensions @@ -355,7 +355,7 @@ module SVG # by subclasses. def init_with config config.each { |key, value| - self.send( key.to_s+"=", value ) if methods.include? key.to_s + self.send( (key.to_s+"=").to_sym, value ) if methods.include? key.to_sym } end -- 1.6.4.4