core/kernel.rbs in rbs-2.1.0 vs core/kernel.rbs in rbs-2.2.0
- old
+ new
@@ -273,12 +273,10 @@
# #warn
# : Issue a warning based on the given messages and options.
#
%a{annotate:rdoc:source:from=object.c}
module Kernel : BasicObject
- private
-
# <!--
# rdoc-file=vm_backtrace.c
# - caller(start=1, length=nil) -> array or nil
# - caller(range) -> array or nil
# -->
@@ -1984,10 +1982,14 @@
# Time.new #=> 2008-03-08 19:56:20 +0900
# sleep 1.9 #=> 2
# Time.new #=> 2008-03-08 19:56:22 +0900
#
def self?.sleep: () -> bot
- | (Numeric duration) -> Integer
+ | ((Integer | Float | _Divmod) duration) -> Integer
+
+ interface _Divmod
+ def divmod: (Numeric) -> [ Numeric, Numeric ]
+ end
# <!--
# rdoc-file=io.c
# - syscall(num [, args...]) -> integer
# -->