Feature #4050 » 0003-Object-methods-returns-Array-of-Symbols.patch
| lib/SVG/Graph/Graph.rb | ||
|---|---|---|
|
:add_popups =>false,
|
||
|
})
|
||
|
|
||
|
set_defaults if methods.include? "set_defaults"
|
||
|
set_defaults if methods.include? :set_defaults
|
||
|
|
||
|
init_with config
|
||
|
end
|
||
| ... | ... | |
|
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
|
||
| ... | ... | |
|
# 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
|
||
|
|
||