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
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/gdk_pixbuf2.rb', line 16 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 |