Skip to content

jacob3141/qtruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qt Pods

Support this and other free software projects of mine by donating bitcoins:

1Hk5EkcZRaio4uGXSU453E1bNFTecsZEpt

QtRuby

Execute ruby code seamlessly from within C++/Qt applications.

// Qt includes
#include <QCoreApplication>

// QtRuby includes
#include "qruby.h"
#include "qrubyvalue.h"

int main(int argc, char *argv[]) {
    QCoreApplication app(argc, argv);
    Q_UNUSED(app);

    QRuby rb;
    rb.printVersion();
    rb.evaluate("(1..10).each do |n| puts n end");

    return 0;
}

Installation and usage

Installation via qt-pods recommended. You can update your version at any time and switch back flawlessly, since it will be embedded as a git submodule. It is not recommended to plain copy the code into your target application. In order to learn more about qt-pods, see here:

https://github.com/cybercatalyst/qt-pods

Dependencies

You need to install the ruby2.1-dev package.

License

Licensed under GNU AGPLv3. Available under a commercial license, too.

About

Execute ruby code from within C++/Qt programs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published