Sha256: 271b4bde554b2163307cff66d24f27c4d67d73e11bfe6622fcc8aa9ce2d46b29

Contents?: true

Size: 316 Bytes

Versions: 101

Compression:

Stored size: 316 Bytes

Contents

class Gtk::Image
  def initialize(*paras)
    if Gtk.takeob
      @ob = Gtk.takeob
      Gtk.takeob = nil
    else
      splitted = self.class.to_s.split("::")
      @ob = RealGtk.const_get(splitted.last).new(*paras)
    end
    
    if !@ob
      raise "Object was not spawned: #{self.class.to_s}"
    end
  end
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
knjrbfw-0.0.116 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.115 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.114 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.113 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.111 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.110 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.109 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.108 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.107 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.105 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.104 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.103 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.102 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.101 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.100 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.99 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.98 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.97 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.96 lib/knj/ironruby-gtk2/image.rb
knjrbfw-0.0.95 lib/knj/ironruby-gtk2/image.rb