public
Description: Ruby wrapper for the Ogre rendering engine and more using rb++
Homepage: http://ogrerb.rubyforge.org
Clone URL: git://github.com/jameskilton/ogrerb.git
Search Repo:
ogrerb / wrappers / noise / code / custom_to_from_ruby.cpp
100644 11 lines (9 sloc) 0.291 kb
1
2
3
4
5
6
7
8
9
10
11
#include "custom_to_from_ruby.hpp"
 
template<>
std::string* from_ruby<std::string*>(Rice::Object x) {
  return new std::string(from_ruby<char const*>(x));
}
 
template<>
const std::string* from_ruby<const std::string*>(Rice::Object x) {
  return new std::string(from_ruby<char const*>(x));
}