stdlib/optparse/0/optparse.rbs in rbs-3.6.0.pre.2 vs stdlib/optparse/0/optparse.rbs in rbs-3.6.0.pre.3
- old
+ new
@@ -452,12 +452,10 @@
# This method is **deprecated**, its behavior corresponds to the older #new
# method.
#
def self.with: (?String banner, ?Integer width, ?String indent) ?{ (instance opts) -> void } -> instance
- public
-
# <!--
# rdoc-file=lib/optparse.rb
# - abort(mesg = $!)
# -->
#
@@ -1107,12 +1105,10 @@
# -->
# Initializes instance variable.
#
def self.extend_object: (untyped obj) -> untyped
- public
-
# <!--
# rdoc-file=lib/optparse.rb
# - getopts(*args, symbolize_names: false)
# -->
# Substitution of getopts is possible as follows. Also see OptionParser#getopts.
@@ -1182,12 +1178,10 @@
# Hash with completion search feature. See OptionParser::Completion.
#
class OptionParser::CompletingHash < Hash[untyped, untyped]
include OptionParser::Completion
- public
-
# <!--
# rdoc-file=lib/optparse.rb
# - match(key)
# -->
# Completion for hash key.
@@ -1212,12 +1206,10 @@
# - regexp(key, icase)
# -->
#
def self.regexp: (untyped key, untyped icase) -> untyped
- public
-
# <!--
# rdoc-file=lib/optparse.rb
# - candidate(key, icase = false, pat = nil)
# -->
#
@@ -1258,12 +1250,10 @@
# Simple option list providing mapping from short and/or long option string to
# OptionParser::Switch and mapping from acceptable argument to matching pattern
# and converter pair. Also provides summary feature.
#
class OptionParser::List
- public
-
# <!--
# rdoc-file=lib/optparse.rb
# - accept(t, pat = /.*/m, &block)
# -->
# See OptionParser.accept.
@@ -1448,12 +1438,10 @@
# - filter_backtrace(array)
# -->
#
def self.filter_backtrace: (untyped array) -> untyped
- public
-
def additional: () -> untyped
def additional=: (untyped) -> untyped
def args: () -> untyped
@@ -1551,12 +1539,10 @@
# - pattern()
# -->
#
def self.pattern: () -> untyped
- public
-
def add_banner: (untyped to) -> untyped
def arg: () -> untyped
def block: () -> untyped
@@ -1648,12 +1634,10 @@
# - pattern()
# -->
#
def self.pattern: () -> untyped
- public
-
# <!--
# rdoc-file=lib/optparse.rb
# - parse(arg, argv) { |NeedlessArgument, arg| ... }
# -->
# Raises an exception if any arguments given.
@@ -1663,12 +1647,10 @@
# <!-- rdoc-file=lib/optparse.rb -->
# Switch that can omit argument.
#
class OptionParser::Switch::OptionalArgument < OptionParser::Switch
- public
-
# <!--
# rdoc-file=lib/optparse.rb
# - parse(arg, argv, &error)
# -->
# Parses argument if given, or uses default value.
@@ -1678,12 +1660,10 @@
# <!-- rdoc-file=lib/optparse.rb -->
# Switch that takes an argument, which does not begin with '-' or is '-'.
#
class OptionParser::Switch::PlacedArgument < OptionParser::Switch
- public
-
# <!--
# rdoc-file=lib/optparse.rb
# - parse(arg, argv, &error)
# -->
# Returns nil if argument is not present or begins with '-' and is not '-'.
@@ -1693,11 +1673,9 @@
# <!-- rdoc-file=lib/optparse.rb -->
# Switch that takes an argument.
#
class OptionParser::Switch::RequiredArgument < OptionParser::Switch
- public
-
# <!--
# rdoc-file=lib/optparse.rb
# - parse(arg, argv)
# -->
# Raises an exception if argument is not present.