class RSVGR::Line
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/rsvgr.rb, line 33 def initialize *args @x1 = 0 @y1 = 0 @x2 = 1 @y2 = 1 super end
Public Instance Methods
to_s()
click to toggle source
# File lib/rsvgr.rb, line 40 def to_s "<line" + " x1=\"#{DEFAULT_SIZE * @x1}\"" + " x2=\"#{DEFAULT_SIZE * @x2}\"" + " y1=\"#{DEFAULT_SIZE * @y1}\"" + " y2=\"#{DEFAULT_SIZE * @y2}\"" + "#{" stroke=\"#{@stroke_color}\"" if @stroke_color}" + "/>\n" end