class GerbilCharts::SVGDC::PPen

Attributes

width[R]

Public Class Methods

new(opt={}) click to toggle source
# File lib/gerbilcharts/svgdc/presentation_attributes.rb, line 22
def initialize(opt={})
    super opt
    @width=opt[:width]  if defined? opt[:width] 
end

Public Instance Methods

render() click to toggle source
# File lib/gerbilcharts/svgdc/presentation_attributes.rb, line 27
def render
  h={}
  h.store("stroke",       @color) if  @color
  h.store("stroke-width", @width) if  @width
  h
end