lib/RMagick.rb in rmagick-2.3.0 vs lib/RMagick.rb in rmagick-2.4.0
- old
+ new
@@ -1,6 +1,6 @@
-# $Id: RMagick.rb,v 1.67 2008/03/14 23:02:02 rmagick Exp $
+# $Id: RMagick.rb,v 1.69 2008/06/02 22:46:51 rmagick Exp $
#==============================================================================
# Copyright (C) 2008 by Timothy P. Hunter
# Name: RMagick.rb
# Author: Tim Hunter
# Purpose: Extend Ruby to interface with ImageMagick.
@@ -915,11 +915,11 @@
end
# Force an image to exact dimensions without changing the aspect ratio.
# Resize and crop if necessary. (Thanks to Jerett Taylor!)
def resize_to_fill(ncols, nrows=nil, gravity=CenterGravity)
- copy.crop_resized!(ncols, nrows, gravity)
+ copy.resize_to_fill!(ncols, nrows, gravity)
end
def resize_to_fill!(ncols, nrows=nil, gravity=CenterGravity)
nrows ||= ncols
if ncols != columns || nrows != rows
@@ -1379,10 +1379,10 @@
end
return obj
end
[:at, :each, :each_index, :empty?, :fetch,
- :first, :include?, :index, :length, :nitems, :rindex, :sort!].each do |mth|
+ :first, :hash, :include?, :index, :length, :nitems, :rindex, :sort!].each do |mth|
module_eval <<-END_SIMPLE_DELEGATES
def #{mth}(*args, &block)
@images.#{mth}(*args, &block)
end
END_SIMPLE_DELEGATES