Method: Gtk::GObject#initialize
- Defined in:
- lib/gtk.rb
#initialize(*args) ⇒ GObject
Returns a new instance of GObject.
101 102 103 104 |
# File 'lib/gtk.rb', line 101 def initialize *args raise "hell" unless args.size == 1 && args.first.is_a?(FFI::Pointer) @native = args.first end |