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

18 lines
337 B
Ruby

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