nandeck-ruby/lib/nandeck/definitions/card_size.rb

18 lines
337 B
Ruby
Raw Normal View History

2013-10-10 02:51:03 +00:00
module Nandeck
class CardSize
def initialize(dpi, width, height)
@dpi, @width, @height = dpi, width, height
end
def to_a
output = []
output << "UNIT = INCH"
output << "CARDSIZE = #{@width}, #{@height}"
output << "BORDER = NONE"
output << "DPI = #{@dpi}"
output
end
end
end