#include <rubyinterpreter.h>
Inheritance diagram for Kross::Ruby::RubyInterpreter:


Definition at line 35 of file rubyinterpreter.h.
Public Member Functions | |
| RubyInterpreter (Kross::Api::InterpreterInfo *info) | |
| ~RubyInterpreter () | |
| virtual Kross::Api::Script * | createScript (Kross::Api::ScriptContainer *scriptcontainer) |
Protected Attributes | |
| InterpreterInfo * | m_interpreterinfo |
| The InterpreterInfo instance this interpreter belongs to. | |
|
|
Constructor
Definition at line 73 of file rubyinterpreter.cpp. References Kross::Api::InterpreterInfo::getOption(), and Kross::Api::InterpreterInfo::hasOption(). 00073 : Kross::Api::Interpreter(info) 00074 { 00075 #ifdef KROSS_RUBY_INTERPRETER_DEBUG 00076 kdDebug() << "RubyInterpreter::RubyInterpreter(info)" << endl; 00077 #endif 00078 if(d == 0) 00079 { 00080 initRuby(); 00081 } 00082 if(info->hasOption("safelevel") ) 00083 { 00084 rb_set_safe_level( info->getOption("safelevel")->value.toInt() ); 00085 } else { 00086 rb_set_safe_level(4); // if the safelevel option is undefined, set it to maximum level 00087 } 00088 }
|
|
|
Destructor. Definition at line 91 of file rubyinterpreter.cpp.
|
|
|
Factory method to create and return a new RubyScript instance. Implements Kross::Api::Interpreter. Definition at line 97 of file rubyinterpreter.cpp.
|
1.4.6