Sha256: c2daef8f171127bfb0fee30793fdb281b3e51a35f699edcba5ae52463626ab52

Contents?: true

Size: 227 Bytes

Versions: 11

Compression:

Stored size: 227 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(ruby_val)->ptr);
}

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
daikini-octave-ruby-1.0.9 ext/octave_api/or-string.cpp
octave-ruby-1.0.0 ext/octave_api/or-string.cpp
octave-ruby-1.0.7 ext/octave_api/or-string.cpp
octave-ruby-1.0.9 ext/octave_api/or-string.cpp
octave-ruby-1.0.3 ext/octave_api/or-string.cpp
octave-ruby-1.0.2 ext/octave_api/or-string.cpp
octave-ruby-1.0.4 ext/octave_api/or-string.cpp
octave-ruby-1.0.6 ext/octave_api/or-string.cpp
octave-ruby-1.0.8 ext/octave_api/or-string.cpp
octave-ruby-1.0.1 ext/octave_api/or-string.cpp
octave-ruby-1.0.5 ext/octave_api/or-string.cpp