// @(#)root/ruby:$Id: TRuby.h 20882 2007-11-19 11:31:26Z rdm $
// Author:  Elias Athanasopoulos, May 2004

#ifndef ROOT_TRuby
#define ROOT_TRuby

#ifndef ROOT_TObject
#include "TObject.h"
#endif

class TRuby {

private:
  static bool Initialize();
public:
  virtual ~TRuby() { }
  // execute a Ruby statement (e.g. "require 'ruby'")
  static void Exec(const char *cmd);

  // evaluate a Ruby expression (e.g. "1+1")
  static TObject *Eval(const char *expr);

  // bind a ROOT object with, at the ruby side, the name "label"
  static bool Bind(TObject *obj, const char *label);

  // enter an interactive ruby session (exit with ^D)
  static void Prompt();

  ClassDef(TRuby,0)   //Ruby/ROOT interface
};

#endif

Last change: Wed Jun 25 08:52:29 2008
Last generated: 2008-06-25 08:52

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.