When I rotate an image with a qualifier and it was not qualified, rotate method returns Qnil. However, this breaks method chaining like this:
image.rotate(90, '>'),resize_to_fit(96,128) # causes 'undefined method'
image.minify.rotate(90, '>') # if nil returned, all previous operations are lost
Why does it simply return self instead of nil? As far as I guess, no one needs to know whether it was rotated or not.
Hi,
When I rotate an image with a qualifier and it was not qualified, rotate method returns Qnil. However, this breaks method chaining like this:
image.rotate(90, '>'),resize_to_fit(96,128) # causes 'undefined method' image.minify.rotate(90, '>') # if nil returned, all previous operations are lost
Why does it simply return self instead of nil? As far as I guess, no one needs to know whether it was rotated or not.