Module TaskJuggler::Painter::SVGSupport
In: lib/taskjuggler/Painter/SVGSupport.rb

Utility module to convert the attributes into SVG compatible syntax.

Methods

Public Instance methods

[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

[Validate]