diff --git a/core/module.rbs b/core/module.rbs index db395a91e..b201a7c21 100644 --- a/core/module.rbs +++ b/core/module.rbs @@ -19,7 +19,7 @@ # Mod.constants #=> [:CONST, :PI, :E] # Mod.instance_methods #=> [:meth] # -class Module < Object +class Module # # Evaluates the given block in the context of the class/module. The method @@ -417,7 +416,7 @@ class Module < Object # # Hello there! # - def class_exec: [U] (*untyped, **untyped) { (?) [self: self] -> U } -> U + alias class_exec module_exec # # Invokes Module.append_features on each parameter in reverse order. # - def include: (Module, *Module arg0) -> self + def include: (Module module, *Module additional_modules) -> self # # Invokes Module.prepend_features on each parameter in reverse order. # - def prepend: (Module, *Module arg0) -> self + def prepend: (Module module, *Module additional_modules) -> self # # Makes a list of existing constants private. # - def private_constant: (*interned arg0) -> self + def private_constant: (*interned names) -> self # # Makes a list of existing constants public. # - def public_constant: (*interned arg0) -> self + def public_constant: (*interned names) -> self # # Returns a string representing this module or class. For basic classes and # modules, this is the name. For singletons, we show information on the thing # we're attached to as well. # - def inspect: () -> String + alias inspect to_s #