class Gdk::PixbufLoader - gdk_pixbuf2-2.2.0 Documentation

# class Gdk::PixbufLoader

### Public Class Methods

open(type = nil, mime_type = false) { |loader| ... } click to toggle source

    # File lib/gdk_pixbuf2.rb, line 30
    def self.open(type = nil, mime_type = false)
      loader = Gdk::PixbufLoader.new(type, mime_type)
      if block_given?
        begin
          yield(loader)
        ensure
          loader.close
        end
      end
      loader
    end