種類
ライブラリ
クラス
-
ARGF
. class (192) -
DRb
:: ExtServ (12) - GetoptLong (24)
- Object (30)
- OptionParser (300)
-
OptionParser
:: ParseError (12) -
RDoc
:: Options (12) -
RDoc
:: RDoc (12) - WIN32OLE (12)
モジュール
- Kernel (96)
- Open3 (108)
-
OpenSSL
:: ASN1 (12) -
OptionParser
:: Arguable (84) - Process (24)
-
Test
:: Unit (1)
キーワード
-
$ * (12) -
$ -i (12) -
$ ARGV (12) -
$ INPUT _ LINE _ NUMBER (12) -
$ NR (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - ARGF (12)
- ARGV (24)
- Arguable (12)
-
NEWS for Ruby 2
. 1 . 0 (12) - NKF (12)
- OptionParser (12)
- Options (12)
- Rubyの起動 (12)
- TCPSocket (12)
- accept (24)
- argv0 (12)
- bigdecimal (12)
-
call
_ cfunc (12) - class (12)
- decode (12)
-
default
_ argv (12) -
default
_ argv= (12) -
define
_ final (12) - document (12)
-
drb
/ extservm (12) - each (48)
-
each
_ byte (24) -
each
_ char (24) -
each
_ line (48) - get (12)
-
get
_ option (12) - getbyte (12)
- getc (12)
- getopts (60)
- gets (12)
-
method
_ call (12) - new (36)
- optparse (12)
- order (48)
- order! (48)
-
os
_ each _ obj (12) - parse (36)
- parse! (24)
- permute (24)
- permute! (24)
- pipeline (12)
-
pipeline
_ r (24) -
pipeline
_ rw (24) -
pipeline
_ start (24) -
pipeline
_ w (24) -
proc
_ s _ new (12) -
rb
_ ary _ aref (12) -
rb
_ call (12) -
rb
_ call0 (12) -
rb
_ call _ super (12) -
rb
_ class _ initialize (12) -
rb
_ class _ instance _ methods (12) -
rb
_ class _ new _ instance (12) -
rb
_ class _ private _ instance _ methods (12) -
rb
_ class _ protected _ instance _ methods (12) -
rb
_ class _ s _ new (12) -
rb
_ cont _ call (12) -
rb
_ define _ method (12) -
rb
_ exec _ arg _ init (1) -
rb
_ f _ abort (12) -
rb
_ f _ caller (12) -
rb
_ f _ eval (12) -
rb
_ f _ exit (12) -
rb
_ f _ load (12) -
rb
_ f _ missing (12) -
rb
_ f _ raise (12) -
rb
_ f _ send (12) -
rb
_ f _ throw (12) -
rb
_ f _ trace _ var (12) -
rb
_ f _ untrace _ var (12) -
rb
_ funcall3 (12) -
rb
_ mod _ attr (12) -
rb
_ mod _ attr _ accessor (12) -
rb
_ mod _ attr _ reader (12) -
rb
_ mod _ attr _ writer (12) -
rb
_ mod _ define _ method (12) -
rb
_ mod _ include (12) -
rb
_ mod _ modfunc (12) -
rb
_ mod _ module _ eval (12) -
rb
_ mod _ private (12) -
rb
_ mod _ private _ method (12) -
rb
_ mod _ protected (12) -
rb
_ mod _ public (12) -
rb
_ mod _ public _ method (12) -
rb
_ obj _ call _ init (12) -
rb
_ obj _ extend (12) -
rb
_ obj _ instance _ eval (12) -
rb
_ obj _ respond _ to (12) -
rb
_ obj _ singleton _ methods (12) -
rb
_ proc _ exec _ n (1) -
rb
_ scan _ args (12) -
rb
_ thread _ join _ m (12) -
rb
_ thread _ raise (12) -
rb
_ thread _ raise _ m (12) -
rb
_ thread _ s _ new (12) -
rb
_ undefined (12) - read (12)
- readline (12)
- readlines (12)
- recover (12)
- reject (24)
-
rinda
/ rinda (12) - rss (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
set
_ method _ visibility (12) - setproctitle (12)
-
setup
_ argv (1) -
specific
_ eval (12) -
top
_ include (12) -
top
_ private (12) -
top
_ public (12) -
umethod
_ call (12) - untaint (6)
- ver (12)
- セキュリティモデル (12)
検索結果
先頭5件
-
OptionParser
:: Arguable # getopts(short _ opt , *long _ opt) -> Hash (6.0) -
指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。
...Parser::ParseError のサブク
ラスの例外になります。
//emlist[t.rb][ruby]{
require 'optparse'
params = ARGV.getopts("ab:", "foo", "bar:", "bufsize:1024")
p params
//}
# 実行結果
$ ruby t.rb -b 1 --foo --bar xxx -- -a
{"bufsize"=>"1024", "a"=>fal... -
Process
. # setproctitle(title) -> String (6.0) -
ps(1) が出力する現在実行中の Ruby スクリプトの名前を引数 title で指定した文字列に変更します。
...あ
りません。
Process.setproctitle('myapp: worker #%d' % worker_id)
本メソッドは 2.1 以降でグローバル変数を用いないで現在実行中の Ruby スク
リプトの名前を表す文字列を設定する手段として提供されました。
@see Process.#argv0, $0... -
RDoc
:: Options (6.0) -
rdoc コマンドのオプションを解析するためのクラスです。
...ムオプション
RDoc のジェネレータでは、RDoc::Options をフックして独自の
オプションを指定できます。
Object::ARGV に --format が含まれていた場合、RDoc はジェネ
レータ独自のオプションを解析するために setup_options メソッドを... -
ruby 1
. 6 feature (6.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...t modify frozen object (TypeError)
from -:4
: ruby -T4
オプション ((<-T4|Rubyの起動/-T[level]>)) を指定したとき、ARGV を
変更できないためプログラムの実行ができませんでした。
((<ruby-dev:13401>))
touch foo
ruby-1.6.3 -v -T4 fo... -
void rb
_ define _ method(VALUE klass , const char *name , VALUE(*func)() , int argc) (6.0) -
クラスklassのインスタンスメソッドnameを定義します。
...Cの配列として第二引数に入れて渡されます。
第一引数は配列の要素数です。
VALUE func(int argc, VALUE *argv, VALUE self)
: argcが-2のとき
引数はRubyの配列に入れて渡されます。
VALUE func(VALUE self, VALUE args)
rb_scan_args...