るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.171秒)

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub

検索結果

Gem::Commands::BuildCommand#usage -> String (21203.0)

使用方法を表す文字列を返します。

使用方法を表す文字列を返します。

OptionParser#banner -> String (6214.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

p opts.banner # => "Usage: example.rb [options]"
//}...