Skip to content
instance method

OptionParser#new

() -> self
[T] () { (self) -> T } -> T
new() { |self| ... }

Pushes a new List.

If a block is given, yields self and returns the result of the block, otherwise returns self.

See also .new #make_switch #on #load also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0