core/numeric.rbs in rbs-1.7.0.beta.4 vs core/numeric.rbs in rbs-1.7.0.beta.5
- old
+ new
@@ -414,6 +414,13 @@
| (Integer ndigits) -> (Integer | Numeric)
# Returns `true` if `num` has a zero value.
#
def zero?: () -> bool
+
+ # Returns +self+.
+ #
+ # Raises an exception if the value for +freeze+ is neither +true+ nor +nil+.
+ #
+ # Related: Numeric#dup.
+ def clone: (?freeze: true?) -> self
end