るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.008秒)
トップページ > クエリ:lf[x] > クエリ:parse![x]

別のキーワード

  1. cgi lf
  2. webrick/httputils lf
  3. webrick lf
  4. cgi/core lf
  5. lf cgi

ライブラリ

クラス

検索結果

OptionParser#parse!(argv = self.default_argv) -> [String] (18200.0)

与えられた argv をパースします。

...ts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

ARGV # => ["-i", "-u", "-h", "test"]
opts.parse(ARGV) # => ["test"]
ARGV # => ["-i", "-u", "-h", "test"]
opts.parse!(ARGV) # => ["test"]
ARGV # => ["test"]
//}...

OptionParser#parse!(argv = self.default_argv, into: nil) -> [String] (18200.0)

与えられた argv をパースします。

...ts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end

ARGV # => ["-i", "-u", "-h", "test"]
opts.parse(ARGV) # => ["test"]
ARGV # => ["-i", "-u", "-h", "test"]
opts.parse!(ARGV) # => ["test"]
ARGV # => ["test"]
//}...

ruby 1.8.4 feature (12.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

...uper
end
end

class Bar
include Foo
def initialize
Foo.instance_method(:initialize).bind(self).call
end
end

Bar.new

# => ruby 1.8.3 (2005-09-21) [i686-linux]
-:3:in `initialize': method `initia...
...履歴は
ext/tk/ChangeLog.tkextlib
を参照してください.

* サンプルスクリプト

: ext/tk/sample/scrollframe.rb [new]

配置したウィジェットの表示範囲をスクロールすることが
できるようなスクロールバ...
...require "optparse"

puts "[#{ARGV * ', '}]"
ARGV.options do |opt|
opt.on("-n NODE") {|v| puts v }
opt.parse!
end

>ruby -v -Ku a.rb -n 時間
ruby 1.8.2 (2004-12-25) [i386-mswin32]
[-n, 時間]


>ruby -v...