Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ GEM
rubocop-ast (1.49.0)
parser (>= 3.3.7.2)
prism (~> 1.7)
rubocop-on-rbs (1.9.0)
rubocop-on-rbs (1.9.1)
lint_roller (~> 1.1)
rbs (~> 3.5)
rubocop (>= 1.72.1, < 2.0)
Expand Down
32 changes: 16 additions & 16 deletions stdlib/bigdecimal/0/big_decimal.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ class Integer
# 4 / Complex(3, 0) # => ((4/3)+0i)
#
def /: (BigDecimal) -> BigDecimal
| ...
| ...

# <!--
# rdoc-file=numeric.c
Expand All @@ -1294,7 +1294,7 @@ class Integer
# 4 * Complex(2, 0) # => (8+0i)
#
def *: (BigDecimal) -> BigDecimal
| ...
| ...

# <!--
# rdoc-file=numeric.c
Expand All @@ -1314,7 +1314,7 @@ class Integer
# 1 + 3.14 # => 4.140000000000001
#
def +: (BigDecimal) -> BigDecimal
| ...
| ...

# <!--
# rdoc-file=numeric.c
Expand All @@ -1330,7 +1330,7 @@ class Integer
# 4 - Complex(2, 0) # => (2+0i)
#
def -: (BigDecimal) -> BigDecimal
| ...
| ...
end

%a{annotate:rdoc:skip}
Expand Down Expand Up @@ -1369,7 +1369,7 @@ class Float
# f / Complex(2, 0) # => (1.57+0.0i)
#
def /: (BigDecimal) -> BigDecimal
| ...
| ...

# <!--
# rdoc-file=numeric.c
Expand All @@ -1384,7 +1384,7 @@ class Float
# f * Complex(2, 0) # => (6.28+0.0i)
#
def *: (BigDecimal) -> BigDecimal
| ...
| ...

# <!--
# rdoc-file=numeric.c
Expand All @@ -1404,7 +1404,7 @@ class Float
# 3.14 + Rational(1, 1) # => 4.140000000000001
#
def +: (BigDecimal) -> BigDecimal
| ...
| ...

# <!--
# rdoc-file=numeric.c
Expand All @@ -1419,7 +1419,7 @@ class Float
# f - Complex(1, 0) # => (2.14+0i)
#
def -: (BigDecimal) -> BigDecimal
| ...
| ...
end

%a{annotate:rdoc:skip}
Expand Down Expand Up @@ -1476,7 +1476,7 @@ class Rational
# Rational(20, 9) / 9.8 #=> 0.22675736961451246
#
def /: (BigDecimal) -> BigDecimal
| ...
| ...

# <!--
# rdoc-file=rational.c
Expand All @@ -1492,7 +1492,7 @@ class Rational
# Rational(-2, 9) * Rational(-9, 2) #=> (1/1)
#
def *: (BigDecimal) -> BigDecimal
| ...
| ...

# <!--
# rdoc-file=rational.c
Expand All @@ -1517,7 +1517,7 @@ class Rational
# Rational(2, 3) + Complex(1.0, 0.0) # => (1.6666666666666665+0.0i)
#
def +: (BigDecimal) -> BigDecimal
| ...
| ...

# <!--
# rdoc-file=rational.c
Expand All @@ -1532,7 +1532,7 @@ class Rational
# Rational(20, 9) - 9.8 #=> -7.577777777777778
#
def -: (BigDecimal) -> BigDecimal
| ...
| ...
end

%a{annotate:rdoc:skip}
Expand Down Expand Up @@ -1571,7 +1571,7 @@ class Complex
# Complex.rect(20, 9) / 9.8 # => (2.0408163265306123+0.9183673469387754i)
#
def /: (BigDecimal) -> Complex
| ...
| ...

# <!--
# rdoc-file=complex.c
Expand All @@ -1587,7 +1587,7 @@ class Complex
# Complex.rect(9, 8) * Rational(2, 3) # => ((6/1)+(16/3)*i)
#
def *: (BigDecimal) -> Complex
| ...
| ...

# <!--
# rdoc-file=complex.c
Expand All @@ -1612,7 +1612,7 @@ class Complex
# Complex(1, 2) + 3.14 # => (4.140000000000001+2i)
#
def +: (BigDecimal) -> Complex
| ...
| ...

# <!--
# rdoc-file=complex.c
Expand All @@ -1627,7 +1627,7 @@ class Complex
# Complex.rect(20, 9) - 9.8 # => (10.2+9i)
#
def -: (BigDecimal) -> Complex
| ...
| ...
end

%a{annotate:rdoc:skip}
Expand Down