Class: OptionParser

Inherits:
Object show all
Defined in:
sig/vendor/optparse.rbs

Defined Under Namespace

Classes: InvalidArgument, InvalidOption, MissingArgument

Instance Method Summary collapse

Constructor Details

#initialize {|arg0| ... } ⇒ OptionParser

Returns a new instance of OptionParser.

Yields:

Yield Parameters:

Yield Returns:

  • (void)


13
# File 'sig/vendor/optparse.rbs', line 13

def initialize: () { (OptionParser) -> void } -> void

Instance Method Details

#banner=String

Parameters:

Returns:



14
# File 'sig/vendor/optparse.rbs', line 14

def banner=: (String) -> String

#onvoid

This method returns an undefined value.

Parameters:



16
# File 'sig/vendor/optparse.rbs', line 16

def on: (*untyped) ?{ (*untyped) -> untyped } -> void

#parse!Array[String]

Parameters:

Returns:



18
# File 'sig/vendor/optparse.rbs', line 18

def parse!: (Array[String]) -> Array[String]

#separatorvoid

This method returns an undefined value.

Parameters:



15
# File 'sig/vendor/optparse.rbs', line 15

def separator: (String) -> void

#to_sString

Returns:



17
# File 'sig/vendor/optparse.rbs', line 17

def to_s: () -> String