rubymodule.h
1/***************************************************************************
2 * rubyinterpreter.cpp
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
20#ifndef KROSS_RUBYRUBYMODULE_H
21#define KROSS_RUBYRUBYMODULE_H
22
23#include <ruby.h>
24
25#include <tqstring.h>
26
27#include <api/object.h>
28#include <api/module.h>
29
30namespace Kross {
31
32namespace Ruby {
33
34class RubyModulePrivate;
35
41 public:
42
50 RubyModule(Kross::Api::Module::Ptr mod, TQString modname);
51
56
57 private:
58
62 static VALUE method_missing(int argc, VALUE *argv, VALUE self);
63
64 private:
66 RubyModulePrivate* d;
67};
68
69}
70
71}
72
73#endif
TDESharedPtr< Module > Ptr
Shared pointer to implement reference-counting.
Definition module.h:41
The Kross scripting bridge to embed scripting functionality into an application.
Definition callable.h:31