core/kernel.rbs in rbs-3.1.3 vs core/kernel.rbs in rbs-3.2.0.pre.1
- old
+ new
@@ -805,11 +805,11 @@
# Exits the process immediately. No exit handlers are run. *status* is returned
# to the underlying system as the exit status.
#
# Process.exit!(true)
#
- def self?.exit!: (Integer | TrueClass | FalseClass status) -> bot
+ def self?.exit!: (?Integer | TrueClass | FalseClass status) -> bot
# <!-- rdoc-file=eval.c -->
# With no arguments, raises the exception in `$!` or raises a RuntimeError if
# `$!` is `nil`. With a single `String` argument, raises a `RuntimeError` with
# the string as a message. Otherwise, the first parameter should be an
@@ -1239,22 +1239,24 @@
#
# 0..4
# [0..4, 0..4, 0..4]
#
def self?.p: [T] (T arg0) -> T
- | (*untyped arg0) -> Array[untyped]
+ | (untyped, untyped, *untyped) -> Array[untyped]
+ | () -> nil
# <!--
# rdoc-file=lib/pp.rb
# - pp(*objs)
# -->
# prints arguments in pretty form.
#
# pp returns argument(s).
#
def self?.pp: [T] (T arg0) -> T
- | (*untyped arg0) -> Array[untyped]
+ | (untyped, untyped, *untyped) -> Array[untyped]
+ | () -> nil
# <!--
# rdoc-file=random.c
# - rand(max=0) -> number
# -->
@@ -1768,10 +1770,11 @@
# # never get here
#
# exec "echo", "*" # echoes an asterisk
# # never get here
#
- def self?.exec: (*String args) -> bot
+ def self?.exec: (String command, *String args, ?unsetenv_others: boolish, ?pgroup: true | Integer, ?umask: Integer, ?in: redirect_fd, ?out: redirect_fd, ?err: redirect_fd, ?close_others: boolish, ?chdir: String) -> bot
+ | (Hash[string, string?] env, String command, *String args, ?unsetenv_others: boolish, ?pgroup: true | Integer, ?umask: Integer, ?in: redirect_fd, ?out: redirect_fd, ?err: redirect_fd, ?close_others: boolish, ?chdir: String) -> bot
type redirect_fd = Integer | :in | :out | :err | IO | String | [ String ] | [ String, string | int ] | [ String, string | int, int ] | [ :child, int ] | :close
# <!--
# rdoc-file=process.c