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

15 lines
280 B
Ruby
Raw Normal View History

2013-10-10 02:51:03 +00:00
module Nandeck
class PageSize
def initialize(width, height, orientation)
@width, @height, @orientation = width, height, orientation
end
def to_a
output = []
output << "PAGE = #{@width}, #{@height}, #{@orientation}"
output
end
end
end