search for: method_c

Displaying 1 result from an estimated 1 matches for "method_c".

Did you mean: method_2
2008 Feb 02
1
Ruby++ FFI (theoretical)
...ruby; // Subclass Object class Foo : public RubyObject { public: // Constructor and Destructor Foo(); // constructor ~Foo(); // destructor // Instance Methods VALUE method_a(); VALUE method_b(VALUE); // Singleton Methods static VALUE method_c(VALUE); }; // foo.cpp - Implementation #include <iostream> #include <foo.h> using namespace ruby; /* Constructor */ Foo::Foo(){ cout << "Hello Worldn"; } /* Or maybe we setup some sort of default Object destructor instead * of making people do it explicitly, unl...