55件ヒット
[1-55件を表示]
(0.120秒)
ライブラリ
- optparse (33)
-
rexml
/ parsers / pullparser (22)
クラス
- OptionParser (33)
-
REXML
:: Parsers :: PullEvent (22)
キーワード
-
default
_ argv= (11) - summarize (22)
検索結果
先頭5件
- REXML
:: Parsers :: PullEvent # [](nth) -> object - REXML
:: Parsers :: PullEvent # [](start , len) -> [object] - OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) -> () - OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) {|line| . . . } -> () - OptionParser
# default _ argv=(argv)
-
REXML
:: Parsers :: PullEvent # [](nth) -> object (24101.0) -
イベントのパラメータを取り出します。
...イベントのパラメータを取り出します。
Array#[] と同様の引数を取ります。
@param nth nth番目のイベントパラメータを取り出します
@param start start番目から len 個のイベントを取り出します
@param len start番目から len 個のイベン... -
REXML
:: Parsers :: PullEvent # [](start , len) -> [object] (24101.0) -
イベントのパラメータを取り出します。
...イベントのパラメータを取り出します。
Array#[] と同様の引数を取ります。
@param nth nth番目のイベントパラメータを取り出します
@param start start番目から len 個のイベントを取り出します
@param len start番目から len 個のイベン... -
OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) -> () (6101.0) -
サマリを指定された to へと加えていきます。
...数で指定します。
@param indent サマリのインデントを文字列で指定します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summarize
# => [" -i... -
OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) {|line| . . . } -> () (6101.0) -
サマリを指定された to へと加えていきます。
...数で指定します。
@param indent サマリのインデントを文字列で指定します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summarize
# => [" -i... -
OptionParser
# default _ argv=(argv) (6025.0) -
自身がデフォルトでパースする引数を文字列の配列で指定します。
...で指定します。
OptionParser#parse の引数が指定されなかったときに使われます。
@param argv デフォルトでパースしたい文字列の配列を指定します。
//emlist[例][ruby]{
require "optparse"
config = {}
opts = OptionParser.new
opts.on("-r", "--require LI......config[:lib] = lib }
# パラメーター指定なしで実行
opts.default_argv # => []
opts.parse!
p config # => {}
opts.default_argv = ["--require", "lib1"] # => ["--require", "lib"]
opts.default_argv # => ["--require", "param1"]
opts.parse!
p config # => {:lib=>"lib1"}
//}...