End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Complex#real?
Complex(1).real? → false
Complex(1, 2).real? → false
complex.c
View on GitHub ↗
static VALUE
nucomp_real_p_m(VALUE self)
{
return Qfalse;
}
Returns false, even if the complex number has no imaginary part.