End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Numeric#dup
dup → self
numeric.c
View on GitHub ↗
static VALUE
num_dup(VALUE x)
{
return x;
}
Returns self.
Related: Numeric#clone.