nandeck-ruby/lib/nandeck/primitives/line.rb

13 lines
336 B
Ruby
Raw Normal View History

2013-10-10 02:51:03 +00:00
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