#include #include #include "bayestest.hpp" using bayestest::BinaryTest; extern "C" void Init_ext() { auto rb_mFieldTest = Rice::define_module("FieldTest"); Rice::define_class_under(rb_mFieldTest, "BinaryTest") .define_constructor(Rice::Constructor()) .define_method("add", &BinaryTest::add) .define_method("probabilities", &BinaryTest::probabilities); }