Kross::Ruby::RubyModule Class Reference

#include <rubymodule.h>

Collaboration diagram for Kross::Ruby::RubyModule:

Collaboration graph
[legend]
List of all members.

Detailed Description

A ruby module.
Author:
Cyrille Berger

Definition at line 41 of file rubymodule.h.

Public Member Functions

 RubyModule (Kross::Api::Module *mod, QString modname)
 ~RubyModule ()


Constructor & Destructor Documentation

Kross::Ruby::RubyModule::RubyModule Kross::Api::Module mod,
QString  modname
 

Constructor.

Parameters:
mod The Kross::Api::Module this RubyExtension wraps.
modname The name the module will be published as.

Definition at line 40 of file rubymodule.cpp.

References QString::ascii(), QString::left(), QString::length(), Kross::Ruby::RubyModulePrivate::m_module, and QString::right().

00040                                                            : d(new RubyModulePrivate)
00041 {
00042     d->m_module = mod;
00043     modname = modname.left(1).upper() + modname.right(modname.length() - 1 );
00044     kdDebug() << modname << endl;
00045     VALUE rmodule = rb_define_module(modname.ascii());
00046     rb_define_module_function(rmodule,"method_missing",  (VALUE (*)(...))RubyModule::method_missing, -1);
00047     VALUE rm = RubyExtension::toVALUE((Kross::Api::Object*)mod);
00048     rb_define_const(rmodule, "MODULEOBJ", rm);
00049 }

Kross::Ruby::RubyModule::~RubyModule  ) 
 

Destructor.

Definition at line 51 of file rubymodule.cpp.

00052 {
00053 }


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 18:01:48 2006 for Kross by  doxygen 1.4.6