module TaskJuggler::Painter::SVGSupport
Utility module to convert the attributes into SVG compatible syntax.
Public Instance Methods
valuesToSVG()
click to toggle source
# File lib/taskjuggler/Painter/SVGSupport.rb, line 21 def valuesToSVG values = {} @values.each do |k, v| unit = k == :font_size ? 'pt' : '' # Convert the underscores to dashes and the symbols to Strings. values[k.to_s.gsub(/[_]/, '-')] = v.to_s + unit end values end