class Magick::ImageList
def method_missing(methID, *args, &block)
send it to the current image in the array. If there are no images, send
the method to the current image. If the method isn't explicitly supported,
The ImageList class supports the Magick::Image class methods by simply sending
def method_missing(methID, *args, &block) begin if @scene @images[@scene].send(methID, *args, &block) else super end rescue NoMethodError Kernel.raise NoMethodError, "undefined method `#{methID.id2name}' for #{self.class}" rescue Exception $@.delete_if { |s| /:in `send'$/.match(s) || /:in `method_missing'$/.match(s) } Kernel.raise end end