APIdock / Ruby
/
method

permute!

ruby latest stable - Class: OptionParser
permute!(argv = default_argv, into: nil)
public

Same as #permute, but removes switches destructively. Non-option arguments remain in argv.

# File lib/optparse.rb, line 1624
 def permute!(argv = default_argv, into: nil)
 nonopts = []
 order!(argv, into: into, &nonopts.method(:<<))
 argv[0, 0] = nonopts
 argv
 end

AltStyle によって変換されたページ (->オリジナル) /