1371件ヒット
[1-100件を表示]
(0.139秒)
種類
ライブラリ
- English (33)
- ビルトイン (204)
-
drb
/ extserv (11) - getoptlong (22)
- nkf (11)
- open3 (99)
- optparse (284)
-
rdoc
/ rdoc (11) -
test
/ unit (1) - win32ole (11)
クラス
-
ARGF
. class (132) -
DRb
:: ExtServ (11) - GetoptLong (22)
- Object (6)
- OptionParser (196)
-
RDoc
:: RDoc (11) - WIN32OLE (11)
モジュール
- Kernel (88)
- Open3 (99)
-
OptionParser
:: Arguable (77) - Process (11)
-
Test
:: Unit (1)
キーワード
-
$ * (11) -
$ -i (11) -
$ ARGV (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ NR (11) - Arguable (11)
- NKF (11)
- Rubyの起動 (11)
- accept (22)
- bigdecimal (11)
-
call
_ cfunc (11) -
default
_ argv (11) -
default
_ argv= (11) -
define
_ final (11) - document (11)
- each (33)
-
each
_ char (22) -
each
_ line (44) - get (11)
-
get
_ option (11) - getbyte (11)
- getc (11)
- getopts (11)
- gets (11)
-
method
_ call (11) - new (33)
- order (32)
- order! (44)
-
os
_ each _ obj (11) - parse (16)
- parse! (22)
- permute (16)
- permute! (22)
- pipeline (11)
-
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) -
proc
_ s _ new (11) -
rb
_ ary _ aref (11) -
rb
_ call (11) -
rb
_ call0 (11) -
rb
_ call _ super (11) -
rb
_ class _ initialize (11) -
rb
_ class _ instance _ methods (11) -
rb
_ class _ new _ instance (11) -
rb
_ class _ private _ instance _ methods (11) -
rb
_ class _ protected _ instance _ methods (11) -
rb
_ class _ s _ new (11) -
rb
_ cont _ call (11) -
rb
_ define _ method (11) -
rb
_ exec _ arg _ init (1) -
rb
_ f _ abort (11) -
rb
_ f _ caller (11) -
rb
_ f _ eval (11) -
rb
_ f _ exit (11) -
rb
_ f _ load (11) -
rb
_ f _ missing (11) -
rb
_ f _ raise (11) -
rb
_ f _ send (11) -
rb
_ f _ throw (11) -
rb
_ f _ trace _ var (11) -
rb
_ f _ untrace _ var (11) -
rb
_ funcall3 (11) -
rb
_ mod _ attr (11) -
rb
_ mod _ attr _ accessor (11) -
rb
_ mod _ attr _ reader (11) -
rb
_ mod _ attr _ writer (11) -
rb
_ mod _ define _ method (11) -
rb
_ mod _ include (11) -
rb
_ mod _ modfunc (11) -
rb
_ mod _ module _ eval (11) -
rb
_ mod _ private (11) -
rb
_ mod _ private _ method (11) -
rb
_ mod _ protected (11) -
rb
_ mod _ public (11) -
rb
_ mod _ public _ method (11) -
rb
_ obj _ call _ init (11) -
rb
_ obj _ extend (11) -
rb
_ obj _ instance _ eval (11) -
rb
_ obj _ respond _ to (11) -
rb
_ obj _ singleton _ methods (11) -
rb
_ proc _ exec _ n (1) -
rb
_ scan _ args (11) -
rb
_ thread _ join _ m (11) -
rb
_ thread _ raise (11) -
rb
_ thread _ raise _ m (11) -
rb
_ thread _ s _ new (11) -
rb
_ undefined (11) - read (11)
- readline (11)
- readlines (11)
- reject (22)
-
set
_ method _ visibility (11) - setproctitle (11)
-
setup
_ argv (1) -
specific
_ eval (11) -
top
_ include (11) -
top
_ private (11) -
top
_ public (11) -
umethod
_ call (11) - untaint (6)
- セキュリティモデル (11)
検索結果
先頭5件
-
WIN32OLE
:: ARGV -> [object] (24149.0) -
直前のメソッド呼び出しの引数を格納した配列です。
...列です。
OLEオートメーションでは呼び出し先が引数に対して値を設定できます。しかし、
Rubyのメソッド引数は値のみを取るため、そのままでは呼び出し先が設定した
値を参照できません。このような場合、ARGVを参照する......します。
' VB (OLE Automation server)
Public Sub Accm(ByVal Operator, ByRef Accumulator, ByVal Operand)
If Operator = "*" Then
Accmulator = Accmulator * Operand
Else If Operator = "+" Then
Accmulator = Accmulator + Operand
End If
End Sub
# Ruby......よって影響を受けない
p WIN32OLE::ARGV # => ['*', 110, 11] …… 結果はARGVの対応する引数に反映される
obj.Accm '+', 10, 11
p WIN32OLE::ARGV # => ['+', 21, 11]
直前のメソッド呼び出しが例外となった場合、ARGVの設定内容は呼び出し前の... -
static VALUE define
_ final(int argc , VALUE *argv , VALUE os) (18500.0) -
-
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (18412.0) -
$. の別名
...$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5... -
OptionParser
# default _ argv=(argv) (15326.0) -
自身がデフォルトでパースする引数を文字列の配列で指定します。
...tionParser#parse の引数が指定されなかったときに使われます。
@param argv デフォルトでパースしたい文字列の配列を指定します。
//emlist[例][ruby]{
require "optparse"
config = {}
opts = OptionParser.new
opts.on("-r", "--require LIBRARY"){|lib| 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"}
//}... -
OptionParser
# default _ argv -> [String] (15313.0) -
自身がデフォルトでパースする引数を文字列の配列で返します。
...の配列で返します。
@param argv デフォルトでパースする文字列の配列を返します。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new
# --hoo param1 --bar param2 をパラメーターに指定して実行
opts.default_argv # => ["--foo", "param1", "--bar",... -
static VALUE specific
_ eval(int argc , VALUE *argv , VALUE klass , VALUE self) (12700.0) -
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。
...rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。... -
VALUE rb
_ class _ instance _ methods(int argc , VALUE *argv , VALUE mod) (12600.0) -
Module#instance_methods の実体。 モジュール mod に定義されている public メソッド名の リストを文字列の配列で返します。
...Module#instance_methods の実体。
モジュール mod に定義されている public メソッド名の
リストを文字列の配列で返します。... -
VALUE rb
_ class _ new _ instance(int argc , VALUE *argv , VALUE klass) (12600.0) -
Class#new の実体です。
...Class#new の実体です。... -
VALUE rb
_ class _ protected _ instance _ methods(int argc , VALUE *argv , VALUE mod) (12600.0) -
Module#protected_instance_methods の実体。 モジュール mod に定義されている protected メソッド名の リストを文字列の配列で返します。
...Module#protected_instance_methods の実体。
モジュール mod に定義されている protected メソッド名の
リストを文字列の配列で返します。... -
VALUE rb
_ obj _ instance _ eval(int argc , VALUE *argv , VALUE self) (12600.0) -