lib

rubyinterpreter.h
1/***************************************************************************
2 * rubyinterpreter.h
3 * This file is part of the KDE project
4 * copyright (C)2005 by Cyrille Berger (cberger@cberger.net)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
19#ifndef KROSS_RUBYRUBYINTERPRETER_H
20#define KROSS_RUBYRUBYINTERPRETER_H
21
22#include <ruby.h>
23
24#include <api/interpreter.h>
25
26namespace Kross {
27
28namespace Ruby {
29
30class RubyInterpreterPrivate;
36{
37 public:
38
46
50 virtual ~RubyInterpreter();
51
56
57 private:
59 void initRuby();
61 void finalizeRuby();
63 static VALUE require (VALUE, VALUE);
64
65 public:
71 static VALUE krossModule();
72
73 private:
75 static RubyInterpreterPrivate* d;
76};
77
78}
79
80}
81
82#endif
While the Interpreter is the implemented interpreter this class is used to provide some abstract info...
Definition interpreter.h:42
Base class for interpreters.
The ScriptContainer class is something like a single standalone scriptfile.
Base class for interpreter dependend functionality each script provides.
Definition script.h:46
virtual Kross::Api::Script * createScript(Kross::Api::ScriptContainer *scriptcontainer)
Factory method to create and return a new RubyScript instance.
virtual ~RubyInterpreter()
Destructor.
RubyInterpreter(Kross::Api::InterpreterInfo *info)
Constructor.
The Ruby plugin for the Kross scripting framework.
Definition rubyconfig.h:33
The Kross scripting bridge to embed scripting functionality into an application.
Definition callable.h:31