class Vips::Operation

def self.flat_find object, &block

inside subarrays and sub-hashes. Equlvalent to x.flatten.find{}.
Search an object for the first element to match a predicate. Search
def self.flat_find object, &block
  if object.respond_to? :each
    object.each do |x|
      result = flat_find x, &block
      return result unless result.nil?
    end
  elsif yield object
    return object
  end
  nil
end