#include <rice/Class.hpp>

using namespace Rice;

namespace
{

int add(Object self, int i1, int i2)
{
  return i1 + i2;
}

} // anon

extern "C"
void Init_add()
{
  // TODO: not the best example (should have Rice::define_global
  // function and not require "self" above)
  Class c(rb_cObject);
  c.define_method("add", add);
}

