Class: Complex

Inherits:
Object show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#to_ccObject



196
197
198
199
200
201
202
203
204
205
# File 'ext/ruby_ccomplex.c', line 196

static VALUE
rb_complex_to_cc (VALUE self)
{
  if ( rb_obj_is_kind_of(self, rb_cCComplex) ) {
    return self;
  }
  else {
    return rb_ccomplex_new(rb_complex_to_cval(self));
  }
}