Skip to content

Commit d93b542

Browse files
authored
Make internal BigMath method a private method (#432)
1 parent f107735 commit d93b542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bigdecimal/math.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def sqrt(x, prec)
5151
# and satisfies sin(x) = sign * sin(reduced_x)
5252
# If add_half_pi is true, adds pi/2 to x before reduction.
5353
# Precision of pi is adjusted to ensure reduced_x has the required precision.
54-
private def _sin_periodic_reduction(x, prec, add_half_pi: false)
54+
private_class_method def _sin_periodic_reduction(x, prec, add_half_pi: false) # :nodoc:
5555
return [1, x] if -Math::PI/2 <= x && x <= Math::PI/2 && !add_half_pi
5656

5757
mod_prec = prec + BigDecimal.double_fig

0 commit comments

Comments
 (0)