種類
ライブラリ
クラス
-
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件
-
void ruby
_ options(int argc , char **argv) (116.0) -
argc と argv を ruby への コマンドラインオプションとして処理します。
...argc と argv を ruby への
コマンドラインオプションとして処理します。... -
OptionParser
. getopts(argv , *opts) -> Hash (107.0) -
引数をパースした結果を、Hash として返します。(self.new.getopts と同じです)
...引数をパースした結果を、Hash として返します。(self.new.getopts と同じです)
@param argv パースしたい配列を指定します。
@param opts 引数を文字列で指定します。
@raise OptionParser::ParseError パースに失敗した場合、発生します。... -
RDoc
:: Options # parse(argv) -> () (107.0) -
コマンドライン引数を解析します。
...コマンドライン引数を解析します。
@param argv コマンドライン引数を文字列の配列で指定します。
また、以下のような指定をした場合は標準エラーに出力を行い、終了コード 1
でプログラムを終了します。
* --extension オ... -
ARGF (102.0)
-
スクリプトに指定した引数 (Object::ARGV を参照) をファイル名とみなして、 それらのファイルを連結した 1 つの仮想ファイルを表すオブジェクトです。 ARGV が空なら標準入力を対象とします。 ARGV を変更すればこのオブジェクトの動作に影響します。
...クリプトに指定した引数
(Object::ARGV を参照) をファイル名とみなして、
それらのファイルを連結した 1 つの仮想ファイルを表すオブジェクトです。
ARGV が空なら標準入力を対象とします。
ARGV を変更すればこのオブジェクト......ts
# do something
end
//}
は、
//emlist[][ruby]{
while argv = ARGV.shift
File.open(argv) {|file|
while line = file.gets
# do something
end
}
end
//}
のように動作します。
ARGF を処理するごとに ARGV の要素は一つずつ取り除かれます。
最後ま......、再度 ARGF から内容を読むと
(ARGV が空なので)標準入力からの読み込みとなります。
//emlist[][ruby]{
ARGV.replace %w(/tmp/foo /tmp/bar)
ARGF.each {|line|
# 処理中の ARGV の内容を表示
p [ARGF.filename, ARGV]
ARGF.skip
}
# => ["/tmp/foo", ["/tm... -
VALUE rb
_ call _ super(int argc , const VALUE *argv) (100.0) -
Rubyレベルでの super です。 現在評価中のメソッドのスーパークラスのメソッドを呼び出します。
Rubyレベルでの super です。
現在評価中のメソッドのスーパークラスのメソッドを呼び出します。 -
VALUE rb
_ class _ instance _ methods(int argc , VALUE *argv , VALUE mod) (100.0) -
Module#instance_methods の実体。 モジュール mod に定義されている public メソッド名の リストを文字列の配列で返します。
Module#instance_methods の実体。
モジュール mod に定義されている public メソッド名の
リストを文字列の配列で返します。 -
VALUE rb
_ class _ new _ instance(int argc , VALUE *argv , VALUE klass) (100.0) -
Class#new の実体です。
Class#new の実体です。 -
VALUE rb
_ class _ private _ instance _ methods(int argc , VALUE *argv , VALUE mod) (100.0) -
Module#private_instance_methods の実体。 モジュール mod に定義されている private メソッド名の リストを文字列の配列で返します。
Module#private_instance_methods の実体。
モジュール mod に定義されている private メソッド名の
リストを文字列の配列で返します。 -
VALUE rb
_ class _ protected _ instance _ methods(int argc , VALUE *argv , VALUE mod) (100.0) -
Module#protected_instance_methods の実体。 モジュール mod に定義されている protected メソッド名の リストを文字列の配列で返します。
Module#protected_instance_methods の実体。
モジュール mod に定義されている protected メソッド名の
リストを文字列の配列で返します。 -
VALUE rb
_ exec _ arg _ init(int argc , VALUE *argv , int accept _ shell , struct rb _ exec _ arg *e) (100.0) -
この関数は deprecated です。
この関数は deprecated です。 -
VALUE rb
_ f _ trace _ var(int argc , VALUE *argv) (100.0) -