nandeck-ruby/lib/nandeck/primitives/line.rb
2013-10-09 22:51:03 -04:00

13 lines
336 B
Ruby

module Nandeck
class Line < Primitive
def initialize(card_index, x, y, width, height, color, thickness)
@card_index, @x, @y, @width, @height, @color, @thickness = card_index, x, y, width, height, color, thickness
end
def to_s
%{LINE = #{@card_index}, #{geometry}, #{@color}, #{@thickness}}
end
end
end