るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.049秒)
トップページ > バージョン:2.3.0[x] > クエリ:IO[x] > クエリ:v[x] > クエリ:to_s[x] > クラス:OptionParser[x]

別のキーワード

  1. socket ipv6_v6only
  2. socket ai_v4mapped
  3. socket ai_v4mapped_cfg
  4. _builtin grep_v
  5. etc cs_v6_env

ライブラリ

検索結果

OptionParser#to_s -> String (54379.0)

サマリの文字列を返します。

...サマリの文字列を返します。

//emlist[例][ruby]{
require "optparse"

options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"

opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
options[:verbose] = v
end
end

puts opts.help

# => Usage:...

OptionParser#help -> String (9079.0)

サマリの文字列を返します。

...サマリの文字列を返します。

//emlist[例][ruby]{
require "optparse"

options = {}
opts = OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"

opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
options[:verbose] = v
end
end

puts opts.help

# => Usage:...