Sha256: 9880455baee300b0fd7f68f1972a9824f4b118d4087ae78bb75b5fcb8937cce1

Contents?: true

Size: 245 Bytes

Versions: 6

Compression:

Stored size: 245 Bytes

Contents

#include "custom_to_from_ruby.hpp"

template<>
Rice::Object to_ruby<MyType>(const MyType & a) {
  return INT2NUM(a.value());
}

template<>
MyType from_ruby<MyType>(Rice::Object x) {
  MyType my;
  my.setValue(FIX2INT(x.value()));
  return my;
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rbplusplus-1.4.0 test/headers/code/custom_to_from_ruby.cpp
rbplusplus-1.3.0 test/headers/code/custom_to_from_ruby.cpp
rbplusplus-1.2.1 test/headers/code/custom_to_from_ruby.cpp
rbplusplus-1.2.0 test/headers/code/custom_to_from_ruby.cpp
rbplusplus-1.1.0 test/headers/code/custom_to_from_ruby.cpp
rbplusplus-1.0.3 test/headers/code/custom_to_from_ruby.cpp