From c49f0de9ea852861ad7e0036f17c3ae5bb7d290d Mon Sep 17 00:00:00 2001 From: tompng Date: Tue, 16 Sep 2025 04:46:31 +0900 Subject: [PATCH] Make internal BigMath method a private method --- lib/bigdecimal/math.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bigdecimal/math.rb b/lib/bigdecimal/math.rb index 521acc42..ba879ec4 100644 --- a/lib/bigdecimal/math.rb +++ b/lib/bigdecimal/math.rb @@ -51,7 +51,7 @@ def sqrt(x, prec) # and satisfies sin(x) = sign * sin(reduced_x) # If add_half_pi is true, adds pi/2 to x before reduction. # Precision of pi is adjusted to ensure reduced_x has the required precision. - private def _sin_periodic_reduction(x, prec, add_half_pi: false) + private_class_method def _sin_periodic_reduction(x, prec, add_half_pi: false) # :nodoc: return [1, x] if -Math::PI/2 <= x && x <= Math::PI/2 && !add_half_pi mod_prec = prec + BigDecimal.double_fig