core/module.rbs in rbs-2.2.2 vs core/module.rbs in rbs-2.3.0

- old
+ new

@@ -361,11 +361,11 @@ # # *produces:* # # Hello there! # - def class_exec: (*untyped args) { () -> untyped } -> untyped + def class_exec: [U] (*untyped args) { () -> U } -> U # <!-- # rdoc-file=object.c # - obj.class_variable_defined?(symbol) -> true or false # - obj.class_variable_defined?(string) -> true or false @@ -674,10 +674,29 @@ # #<B:0x401b39e8> # def define_method: (Symbol | String arg0, ?Proc | Method | UnboundMethod arg1) -> Symbol | (Symbol | String arg0) { () -> untyped } -> Symbol + # <!-- + # rdoc-file=object.c + # - mod.deprecate_constant(symbol, ...) => mod + # --> + # Makes a list of existing constants deprecated. Attempt to refer to them will + # produce a warning. + # + # module HTTP + # NotFound = Exception.new + # NOT_FOUND = NotFound # previous version of the library used this name + # + # deprecate_constant :NOT_FOUND + # end + # + # HTTP::NOT_FOUND + # # warning: constant HTTP::NOT_FOUND is deprecated + # + def deprecate_constant: (*Symbol) -> self + def eql?: (untyped other) -> bool def equal?: (untyped other) -> bool # <!-- @@ -1023,10 +1042,10 @@ # # *produces:* # # Hello there! # - def module_exec: (*untyped args) { () -> untyped } -> untyped + def module_exec: [U] (*untyped args) { (*untyped args) -> U } -> U # <!-- # rdoc-file=vm_method.c # - module_function -> nil # - module_function(method_name) -> method_name