stdlib/optparse/0/optparse.rbs in rbs-2.2.2 vs stdlib/optparse/0/optparse.rbs in rbs-2.3.0
- old
+ new
@@ -1,11 +1,11 @@
# <!-- rdoc-file=lib/optparse.rb -->
# ## OptionParser
#
# ### New to OptionParser?
#
-# See the [Tutorial](./doc/optparse/tutorial_rdoc.html).
+# See the [Tutorial](optparse/tutorial.rdoc).
#
# ### Introduction
#
# OptionParser is a class for command-line option analysis. It is much more
# advanced, yet also easier to use, than GetoptLong, and is a more Ruby-oriented
@@ -372,13 +372,12 @@
# command line options.
#
# ### Further documentation
#
# The above examples, along with the accompanying
-# [Tutorial](./doc/optparse/tutorial_rdoc.html), should be enough to learn how
-# to use this class. If you have any questions, file a ticket at
-# http://bugs.ruby-lang.org.
+# [Tutorial](optparse/tutorial.rdoc), should be enough to learn how to use this
+# class. If you have any questions, file a ticket at http://bugs.ruby-lang.org.
#
class OptionParser
interface _Pattern
def match: (untyped other) -> boolish
end
@@ -538,16 +537,16 @@
# <!--
# rdoc-file=lib/optparse.rb
# - define(*params, &block)
# -->
# Creates an option from the given parameters `params`. See [Parameters for New
- # Options](./doc/optparse/option_params_rdoc.html).
+ # Options](./option_params.rdoc).
#
# The block, if given, is the handler for the created option. When the option is
# encountered during command-line parsing, the block is called with the argument
# given for the option, if any. See [Option
- # Handlers](./option_params_rdoc.html#label-Option+Handlers).
+ # Handlers](./option_params.rdoc#label-Option+Handlers).
#
def define: (*String params) ?{ (*untyped) -> untyped } -> untyped
| (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> untyped
| (*String params, Proc | Method handler) -> untyped
| (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> untyped
@@ -555,16 +554,16 @@
# <!--
# rdoc-file=lib/optparse.rb
# - define_head(*params, &block)
# -->
# Creates an option from the given parameters `params`. See [Parameters for New
- # Options](./doc/optparse/option_params_rdoc.html).
+ # Options](./option_params.rdoc).
#
# The block, if given, is the handler for the created option. When the option is
# encountered during command-line parsing, the block is called with the argument
# given for the option, if any. See [Option
- # Handlers](./option_params_rdoc.html#label-Option+Handlers).
+ # Handlers](./option_params.rdoc#label-Option+Handlers).
#
def define_head: (*String params) ?{ (*untyped) -> untyped } -> untyped
| (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> untyped
| (*String params, Proc | Method handler) -> untyped
| (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> untyped
@@ -572,16 +571,16 @@
# <!--
# rdoc-file=lib/optparse.rb
# - define_tail(*params, &block)
# -->
# Creates an option from the given parameters `params`. See [Parameters for New
- # Options](./doc/optparse/option_params_rdoc.html).
+ # Options](./option_params.rdoc).
#
# The block, if given, is the handler for the created option. When the option is
# encountered during command-line parsing, the block is called with the argument
# given for the option, if any. See [Option
- # Handlers](./option_params_rdoc.html#label-Option+Handlers).
+ # Handlers](./option_params.rdoc#label-Option+Handlers).
#
def define_tail: (*String params) ?{ (*untyped) -> untyped } -> untyped
| (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc) ?{ (*untyped) -> untyped } -> untyped
| (*String params, Proc | Method handler) -> untyped
| (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> untyped
@@ -644,16 +643,16 @@
# <!--
# rdoc-file=lib/optparse.rb
# - make_switch(params, block = nil)
# -->
# Creates an option from the given parameters `params`. See [Parameters for New
- # Options](./doc/optparse/option_params_rdoc.html).
+ # Options](./option_params.rdoc).
#
# The block, if given, is the handler for the created option. When the option is
# encountered during command-line parsing, the block is called with the argument
# given for the option, if any. See [Option
- # Handlers](./option_params_rdoc.html#label-Option+Handlers).
+ # Handlers](./option_params.rdoc#label-Option+Handlers).
#
def make_switch: (Array[untyped] opts, ?Proc block) -> [ untyped, untyped, untyped, untyped, untyped ]
# <!--
# rdoc-file=lib/optparse.rb
@@ -667,16 +666,16 @@
# <!--
# rdoc-file=lib/optparse.rb
# - on(*params, &block)
# -->
# Creates an option from the given parameters `params`. See [Parameters for New
- # Options](./doc/optparse/option_params_rdoc.html).
+ # Options](./option_params.rdoc).
#
# The block, if given, is the handler for the created option. When the option is
# encountered during command-line parsing, the block is called with the argument
# given for the option, if any. See [Option
- # Handlers](./option_params_rdoc.html#label-Option+Handlers).
+ # 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 params, Proc | Method handler) -> self
| (String params, Class | Array[String] | Hash[Symbol, untyped] | Regexp obj, ?String desc, Proc | Method handler) -> self
@@ -684,16 +683,16 @@
# <!--
# rdoc-file=lib/optparse.rb
# - on_head(*params, &block)
# -->
# Creates an option from the given parameters `params`. See [Parameters for New
- # Options](./doc/optparse/option_params_rdoc.html).
+ # Options](./option_params.rdoc).
#
# The block, if given, is the handler for the created option. When the option is
# encountered during command-line parsing, the block is called with the argument
# given for the option, if any. See [Option
- # Handlers](./option_params_rdoc.html#label-Option+Handlers).
+ # Handlers](./option_params.rdoc#label-Option+Handlers).
#
# 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
@@ -703,16 +702,16 @@
# <!--
# rdoc-file=lib/optparse.rb
# - on_tail(*params, &block)
# -->
# Creates an option from the given parameters `params`. See [Parameters for New
- # Options](./doc/optparse/option_params_rdoc.html).
+ # Options](./option_params.rdoc).
#
# The block, if given, is the handler for the created option. When the option is
# encountered during command-line parsing, the block is called with the argument
# given for the option, if any. See [Option
- # Handlers](./option_params_rdoc.html#label-Option+Handlers).
+ # Handlers](./option_params.rdoc#label-Option+Handlers).
#
# 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
@@ -807,9 +806,12 @@
# <!-- rdoc-file=lib/optparse.rb -->
# Release code
#
def release: () -> untyped
+ # <!-- rdoc-file=lib/optparse.rb -->
+ # Release code
+ #
def release=: (untyped) -> untyped
# <!--
# rdoc-file=lib/optparse.rb
# - remove()