stdlib/optparse/0/optparse.rbs in rbs-2.7.0.pre.2 vs stdlib/optparse/0/optparse.rbs in rbs-2.7.0.pre.3

- old
+ new

@@ -675,12 +675,14 @@ # given for the option, if any. See [Option # Handlers](./option_params.rdoc#label-Option+Handlers). # def on: (*String params) ?{ (*untyped) -> untyped } -> self | (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> self + | (String short_params, String long_params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> self | (*String params, Proc | Method handler) -> self | (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> self + | (String short_params, String long_params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> self # <!-- # rdoc-file=lib/optparse.rb # - on_head(*params, &block) # --> @@ -694,12 +696,14 @@ # # The new option is added at the head of the summary. # def on_head: (*String params) ?{ (*untyped) -> untyped } -> self | (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> self + | (String short_params, String long_params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> self | (*String params, Proc | Method handler) -> self | (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> self + | (String short_params, String long_params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> self # <!-- # rdoc-file=lib/optparse.rb # - on_tail(*params, &block) # --> @@ -713,11 +717,13 @@ # # The new option is added at the tail of the summary. # def on_tail: (*String params) ?{ (*untyped) -> untyped } -> self | (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> self + | (String short_params, String long_params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> self | (*String params, Proc | Method handler) -> self | (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> self + | (String short_params, String long_params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> self # <!-- # rdoc-file=lib/optparse.rb # - order(*argv, into: nil, &nonopt) # -->