class Magick::Image

def view(x, y, width, height)

object, otherwise return the view object.
Construct a view. If a block is present, yield and pass the view
def view(x, y, width, height)
  view = View.new(self, x, y, width, height)
  return view unless block_given?
  begin
    yield(view)
  ensure
    view.sync
  end
  nil
end