core/module.rbs in rbs-1.0.0 vs core/module.rbs in rbs-1.0.1
- old
+ new
@@ -257,11 +257,11 @@
# Hello there!
# dummy:123:in `module_eval': undefined local variable
# or method `code' for Thing:Class
#
def class_eval: (String arg0, ?String filename, ?Integer lineno) -> untyped
- | [U] (untyped arg0) { (untyped m) -> U } -> U
+ | [U] { (self m) -> U } -> U
# Evaluates the given block in the context of the class/module. The method
# defined in the block will belong to the receiver. Any arguments passed to the
# method will be passed to the block. This can be used if the block needs to
# access instance variables.
@@ -791,10 +791,10 @@
# Hello there!
# dummy:123:in `module_eval': undefined local variable
# or method `code' for Thing:Class
#
def module_eval: (String arg0, ?String filename, ?Integer lineno) -> untyped
- | [U] (untyped arg0) { (untyped m) -> U } -> U
+ | [U] { (self m) -> U } -> U
# Evaluates the given block in the context of the class/module. The method
# defined in the block will belong to the receiver. Any arguments passed to the
# method will be passed to the block. This can be used if the block needs to
# access instance variables.