From d02a3732d3d916ed85c105996584da8747d3eb24 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Sat, 22 Sep 2007 02:26:03 -0400 Subject: [PATCH] :format -> :paper --- lib/minicomic.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/minicomic.rb b/lib/minicomic.rb index d7162b7..7ed7169 100644 --- a/lib/minicomic.rb +++ b/lib/minicomic.rb @@ -23,7 +23,7 @@ DEFAULT_OPTIONS = { :color => true, - :format => :letter, + :paper => :letter, :orientation => :landscape, # in pixels @@ -527,7 +527,7 @@ end def initialize( dir, options={} ) @options = DEFAULT_OPTIONS.merge options - case @options[:format] + case @options[:paper] when :letter @options[:paper_width] = 8.5 * 72 @options[:paper_height] = 11 * 72 @@ -547,10 +547,10 @@ def initialize( dir, options={} ) @options[:paper_width] = 176 * 72 / 25.4 @options[:paper_height] = 250 * 72 / 25.4 when Array - @options[:paper_width] = @options[:format][0].to_f - @options[:paper_height] = @options[:format][1].to_f + @options[:paper_width] = @options[:paper][0].to_f + @options[:paper_height] = @options[:paper][1].to_f else - raise ArgumentError, "Unknown booklet size #{ @options[:format] }" + raise ArgumentError, "Unknown paper size #{ @options[:paper] }" end case @options[:orientation] -- 2.11.4.GIT