static public Method

Internal.try_initialize(instance, *args)

Runs the initializer as far as allocating the Qt C++ instance. Then use a throw to jump back to here with the C++ instance wrapped in a new ruby variable of type T_DATA

Source Code

# File qt/qtruby4.rb, line 2196
def Internal.try_initialize(instance, *args)
        initializer = instance.method(:initialize)
        catch "newqt" do
                initializer.call(*args)
        end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.