core/module.rbs in rbs-3.4.4 vs core/module.rbs in rbs-3.5.0.pre.1
- old
+ new
@@ -812,11 +812,11 @@
# rdoc-file=eval.c
# - include(module, ...) -> self
# -->
# Invokes Module.append_features on each parameter in reverse order.
#
- def include: (*Module arg0) -> self
+ def include: (Module, *Module arg0) -> self
# <!--
# rdoc-file=object.c
# - mod.include?(module) -> true or false
# -->
@@ -1145,11 +1145,15 @@
# end
# end
# Mod.one #=> "This is one"
# c.call_one #=> "This is the new one"
#
- def module_function: (*interned arg0) -> self
+ def module_function: () -> nil
+ | (Symbol method_name) -> Symbol
+ | (Symbol, Symbol, *Symbol method_name) -> Array[Symbol]
+ | (string method_name) -> string
+ | (interned, interned, *interned method_name) -> Array[interned]
# <!--
# rdoc-file=object.c
# - mod.name -> string
# -->
@@ -1161,11 +1165,11 @@
# rdoc-file=eval.c
# - prepend(module, ...) -> self
# -->
# Invokes Module.prepend_features on each parameter in reverse order.
#
- def prepend: (*Module arg0) -> self
+ def prepend: (Module, *Module arg0) -> self
# <!--
# rdoc-file=eval.c
# - prepend_features(mod) -> mod
# -->
@@ -1223,10 +1227,11 @@
def private: () -> nil
| (Symbol method_name) -> Symbol
| (Symbol, Symbol, *Symbol method_name) -> Array[Symbol]
| (string method_name) -> string
| (interned, interned, *interned method_name) -> Array[interned]
+ | (Array[interned]) -> Array[interned]
# <!--
# rdoc-file=vm_method.c
# - mod.private_class_method(symbol, ...) -> mod
# - mod.private_class_method(string, ...) -> mod
@@ -1245,10 +1250,11 @@
# @me
# end
# end
#
def private_class_method: (*interned arg0) -> self
+ | (Array[interned] arg0) -> self
# <!--
# rdoc-file=object.c
# - mod.private_constant(symbol, ...) => mod
# -->
@@ -1324,11 +1330,16 @@
#
# Note that a protected method is slow because it can't use inline cache.
#
# To show a private method on RDoc, use `:doc:` instead of this.
#
- def protected: (*interned arg0) -> self
+ def protected: () -> nil
+ | (Symbol method_name) -> Symbol
+ | (Symbol, Symbol, *Symbol method_name) -> Array[Symbol]
+ | (string method_name) -> string
+ | (interned, interned, *interned method_name) -> Array[interned]
+ | (Array[interned]) -> Array[interned]
# <!--
# rdoc-file=object.c
# - mod.protected_instance_methods(include_super=true) -> array
# -->
@@ -1384,10 +1395,11 @@
def public: () -> nil
| (Symbol method_name) -> Symbol
| (Symbol, Symbol, *Symbol method_name) -> Array[Symbol]
| (string method_name) -> string
| (interned, interned, *interned method_name) -> Array[interned]
+ | (Array[interned]) -> Array[interned]
# <!--
# rdoc-file=vm_method.c
# - mod.public_class_method(symbol, ...) -> mod
# - mod.public_class_method(string, ...) -> mod
@@ -1397,9 +1409,10 @@
#
# String arguments are converted to symbols. An Array of Symbols and/or Strings
# is also accepted.
#
def public_class_method: (*interned arg0) -> self
+ | (Array[interned] arg0) -> self
# <!--
# rdoc-file=object.c
# - mod.public_constant(symbol, ...) => mod
# -->