APIdock / Ruby
/
method

new

ruby latest stable - Class: OptionParser
new(banner = nil, width = 32, indent = ' ' * 4)
public

Initializes the instance and yields itself if called with a block.

banner

Banner message.

width

Summary width.

indent

Summary indent.

# File lib/optparse.rb, line 1054
 def initialize(banner = nil, width = 32, indent = ' ' * 4)
 @stack = [DefaultList, List.new, List.new]
 @program_name = nil
 @banner = banner
 @summary_width = width
 @summary_indent = indent
 @default_argv = ARGV
 add_officious
 yield self if block_given?
 end

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