Sha256: 83432de3982c54360e059b5602c94717c7cbe203869983be14c6aac79433d07a

Contents?: true

Size: 226 Bytes

Versions: 4

Compression:

Stored size: 226 Bytes

Contents

#include "or-string.h"

OR_String::~OR_String() {}

VALUE OR_String::to_ruby()
{
  return rb_str_new2(octave_val.string_value().c_str());
}

octave_value OR_String::to_octave()
{
  return std::string(RSTRING_PTR(ruby_val));
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
octave-ruby-2.0.3 ext/octave_api/or-string.cpp
octave-ruby-2.0.2 ext/octave_api/or-string.cpp
octave-ruby-2.0.1 ext/octave_api/or-string.cpp
octave-ruby-2.0.0 ext/octave_api/or-string.cpp