Project

General

Profile

Feature #4050 » 0003-Object-methods-returns-Array-of-Symbols.patch

Alexey Froloff, 2009-10-18 12:51

View differences:

lib/SVG/Graph/Graph.rb
150 150
          :add_popups           =>false,
151 151
        })
152 152

  
153
				set_defaults if methods.include? "set_defaults"
153
				set_defaults if methods.include? :set_defaults
154 154

  
155 155
        init_with config
156 156
      end
......
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 methods.include? :calculations
199 199

  
200 200
        start_svg
201 201
        calculate_graph_dimensions
......
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 methods.include? key.to_sym
359 359
        }
360 360
      end
361 361

  
(7-7/14)