APIdock / Ruby
/
method

terminate

ruby latest stable - Class: GetoptLong
terminate()
public

Explicitly terminate option processing.

# File lib/getoptlong.rb, line 358
 def terminate
 return nil if @status == STATUS_TERMINATED
 raise RuntimeError, "an error has occurred" if @error != nil
 @status = STATUS_TERMINATED
 @non_option_arguments.reverse_each do |argument|
 ARGV.unshift(argument)
 end
 @canonical_names = nil
 @argument_flags = nil
 @rest_singles = nil
 @non_option_arguments = nil
 return self
 end

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