lib/rmagick_internal.rb
# The ImageList class supports the Magick::Image class methods by simply sending
# the method to the current image. If the method isn't explicitly supported,
# send it to the current image in the array. If there are no images, send
# it up the line. Catch a NameError and emit a useful message.
The ImageList class supports the Magick::Image class methods by simply sending
the method to the current image. If the method isn't explicitly supported,
send it to the current image in the array. If there are no images, send
it up the line. Catch a NameError and emit a useful message.
The ImageList class supports the Magick :: Image class methods by simply sending the method to the current image . If the method isn ' t explicitly supported send it to the current image in the array . If there are no images send it up the line . Catch a NameError and emit a useful message .
def method_missing(meth_id, *args, &block)
      if @scene
        @images[@scene].send(meth_id, *args, &block)
      else
        super
      end
    rescue NoMethodError
      Kernel.raise NoMethodError, "undefined method `#{meth_id.id2name}' for #{self.class}"
    rescue Exception
      $ERROR_POSITION.delete_if { |s| /:in `send'$/.match(s) || /:in `method_missing'$/.match(s) }
      Kernel.raise
    end
def method_missing ( meth_id , * args , & block ) if @scene @images [ @scene ] . send ( meth_id , * args , & block ) else super end rescue NoMethodError Kernel . raise NoMethodError , "undefined method `#{meth_id.id2name}' for #{self.class}" rescue Exception $ERROR_POSITION . delete_if { | s | / :in `send'$ / . match ( s ) || / :in `method_missing'$ / . match ( s ) } Kernel . raise end
The ImageList class supports the Magick::Image class methods by simply sending
the method to the current image.
The ImageList class supports the Magick :: Image class methods by simply sending the method to the current image .
meth_id
<not_specific>
args
<not_specific>
block
<not_specific>