Class: Gdk::PixbufLoader
- Inherits:
-
Object
- Object
- Gdk::PixbufLoader
- Defined in:
- lib/gdk_pixbuf2.rb
Class Method Summary collapse
Class Method Details
.open(type = nil, mime_type = false) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# 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 |