class OptionParser::Switch::NoArgument
Switch that takes no arguments.
Public Class Methods
(*untyped) → untyped
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/optparse/0/optparse.rbs, line 1679
def self.incompatible_argument_styles: (*untyped) -> untyped
() → untyped
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/optparse/0/optparse.rbs, line 1686
def self.pattern: () -> untyped
Public Instance Methods
(untyped arg, untyped argv) → untyped
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/optparse/0/optparse.rbs, line 1694
def parse: (untyped arg, untyped argv) -> untyped
Raises an exception if any arguments given.