class RSVGR::Circle
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/rsvgr.rb, line 69 def initialize *args @cx = 0.5 @cy = 0.5 @r = 0.5 super end
Public Instance Methods
to_s()
click to toggle source
# File lib/rsvgr.rb, line 75 def to_s "<circle" + " cx=\"#{DEFAULT_SIZE * @cx}\"" + " cy=\"#{DEFAULT_SIZE * @cy}\"" + " r=\"#{DEFAULT_SIZE * @r}\"" + "#{" fill=\"#{@fill_color}\"" if @fill_color}" + "#{" stroke=\"#{@stroke_color}\"" if @stroke_color}" + "#{" stroke-width=\"#{@stroke_width}\"" if @stroke_width}" + "#{" onmousemove=\"#{@onmousemove}\"" if @onmousemove}" + "#{" onmouseout=\"#{@onmouseout}\"" if @onmouseout}" + "/>\n" end