別のキーワード
ライブラリ
- ビルトイン (874)
-
cgi
/ core (12) - csv (12)
- erb (12)
- fiber (8)
- fiddle (12)
- getoptlong (36)
-
json
/ add / complex (12) -
json
/ add / exception (12) -
json
/ add / ostruct (12) -
json
/ add / regexp (12) -
minitest
/ mock (1) -
minitest
/ unit (1) - mkmf (12)
-
net
/ ftp (96) - openssl (36)
- optparse (324)
- pathname (120)
- rake (72)
-
rexml
/ document (24) -
rexml
/ sax2listener (12) - ripper (24)
-
rubygems
/ command (24) -
rubygems
/ command _ manager (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ user _ interaction (12) - set (18)
- win32ole (60)
- zlib (12)
クラス
-
ARGF
. class (291) - BasicObject (12)
-
CSV
:: Row (12) - Complex (48)
- Data (3)
- ERB (12)
- Enumerator (60)
-
Enumerator
:: Lazy (48) - Exception (12)
- Fiber (24)
-
Fiddle
:: Function (12) - Float (12)
-
Gem
:: Command (24) -
Gem
:: CommandManager (12) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: StreamUI (12) - GetoptLong (36)
- Hash (24)
- IO (24)
- Method (12)
-
MiniTest
:: Mock (1) -
MiniTest
:: Unit (1) - Module (24)
-
Net
:: FTP (96) - NoMethodError (12)
- Numeric (36)
- Object (132)
- OpenStruct (12)
- OptionParser (204)
-
OptionParser
:: ParseError (24) - Pathname (120)
- Proc (48)
-
RDoc
:: Options (12) -
REXML
:: Attribute (12) -
REXML
:: Instruction (12) -
Rake
:: Task (12) -
Rake
:: TaskArguments (48) - Regexp (12)
- Ripper (24)
- String (30)
- Thread (24)
- WIN32OLE (48)
-
WIN32OLE
_ TYPE (12) -
Zlib
:: GzipWriter (12)
モジュール
-
CGI
:: QueryExtension (12) - Enumerable (48)
- Kernel (12)
-
OpenSSL
:: Buffering (24) -
OpenSSL
:: SSL :: SocketForwarder (12) -
OptionParser
:: Arguable (96) -
REXML
:: SAX2Listener (12) -
Rake
:: TaskManager (12)
キーワード
- % (12)
- === (12)
- [] (24)
-
_ dump (12) -
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
add
_ trace _ func (12) - angle (24)
-
arg
_ description (12) - args (24)
- arguments (12)
- binread (12)
- call (24)
-
class
_ exec (12) - codepoints (14)
- concat (9)
-
create
_ body (12) -
create
_ makefile (12) -
create
_ rule (12) -
def
_ class (12) -
default
_ argv (12) -
default
_ argv= (12) -
default
_ event _ sources (12) - dir (24)
- each (60)
-
each
_ char (24) -
each
_ codepoint (24) -
each
_ line (24) -
each
_ option (12) -
each
_ with _ index (24) -
enum
_ for (48) - expect (1)
- fcntl (12)
- fnmatch (12)
- fnmatch? (12)
-
get
_ one _ optional _ argument (12) - getopts (24)
- gets (27)
- help (12)
- initialize (12)
-
inplace
_ mode (12) -
inplace
_ mode= (12) - inspect (30)
- join (12)
- list (24)
- lookup (12)
- ls (24)
-
marshal
_ dump (12) -
method
_ missing (12) - mkdir (12)
-
module
_ exec (12) - namespace (12)
-
new
_ scope (12) -
on
_ head (12) -
on
_ tail (12) - order (48)
- order! (48)
- parse (36)
- parse! (24)
- path (12)
- permute (24)
- permute! (24)
- phase (36)
- pos (12)
- pos= (12)
- prepend (9)
- print (36)
- printf (48)
-
process
_ args (13) -
processing
_ instruction (12) -
progress
_ reporter (12) -
public
_ send (24) - push (12)
- putc (12)
- puts (12)
- read (12)
-
read
_ nonblock (10) - readlines (12)
- readpartial (12)
- recover (12)
- resume (12)
- send (24)
-
set
_ encoding (24) -
set
_ trace _ func (12) - setproperty (12)
- shift (12)
- site (12)
- skip (12)
- sysopen (12)
- target (12)
- tell (12)
-
to
_ enum (48) -
to
_ json (48) -
to
_ s (30) -
to
_ set (24) - transfer (12)
- warn (12)
- warning (12)
- with (3)
-
with
_ index (12) - yield (12)
検索結果
先頭5件
-
Complex
# arg -> Float (18156.0) -
自身の偏角を[-π,π]の範囲で返します。
...omplex.polar(3, Math::PI/2).arg # => 1.5707963267948966
//}
非正の実軸付近での挙動に注意してください。以下の例のように虚部が 0.0 と
-0.0 では値が変わります。
//emlist[例][ruby]{
Complex(-1, 0).arg #=> 3.141592653589793
Complex(-1, -0).arg......#=> 3.141592653589793
Complex(-1, -0.0).arg #=> -3.141592653589793
Complex(0, 0.0).arg #=> 0.0
Complex(0, -0.0).arg #=> -0.0
Complex(-0.0, 0).arg #=> 3.141592653589793
Complex(-0.0, -0.0).arg #=> -3.141592653589793
//}
@see Numeric#arg... -
Numeric
# arg -> 0 | Math :: PI (15220.0) -
自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。
...自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。
//emlist[例][ruby]{
1.arg # => 0
-1.arg # => 3.141592653589793
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
@see Complex#arg... -
OptionParser
:: Arguable # getopts(short _ opt , *long _ opt) -> Hash (12307.0) -
指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。
...指定された short_opt や long_opt に応じて自身をパースし、結果を Hash として返します。
コマンドラインに - もしくは -- を指定した場合、それ以降の解析を行ないません。
@param short_opt ショートネームのオプション(-f や -fx)......ないときは空文字列を指定します。
オプションが引数をとる場合は直後に ":" を付けます。
@param long_opt ロングネームのオプション(--version や --bufsize=512)を文字列で指定をします。
オプションが引数......se OptionParser::ParseError 自身のパースに失敗した場合、発生します。
実際は OptionParser::ParseError のサブク
ラスの例外になります。
//emlist[t.rb][ruby]{
require 'optparse'
params = ARGV.getopts("... -
Gem
:: CommandManager # process _ args(args) -> () (12301.0) -
引数 args を処理して gem コマンドを実行するために必要な処理を行います。
...引数 args を処理して gem コマンドを実行するために必要な処理を行います。
@param args コマンドラインから受け取った引数を指定します。... -
MiniTest
:: Unit # process _ args(args = []) -> Hash (12301.0) -
optparse を使ってコマンドライン引数を解析した結果を返します。
...optparse を使ってコマンドライン引数を解析した結果を返します。
@param args コマンドライン引数を指定します。
@see optparse... -
OptionParser
:: Arguable # options -> OptionParser (12207.0) -
自身をパースするための OptionParser オブジェクトを返します。 初回呼び出し時に自動的に生成されます。 この OptionParser#default_argv には self がセットされています。
...自身をパースするための OptionParser オブジェクトを返します。
初回呼び出し時に自動的に生成されます。
この OptionParser#default_argv には self がセットされています。
ブロックを与えた場合は、OptionParser を引数としてブロッ......ロックの実行途中で OptionParser::ParseError
が発生した場合は、全て rescue し、エラーメッセージを出力し、
nil を返します。
//emlist[][ruby]{
require 'optparse'
o = nil
ARGV.options{|opt|
opt.on('-a'){ o = true }
opt.parse!
}
p o #... -
OptionParser
:: Arguable # options {|opt| . . . } -> object | nil (12207.0) -
自身をパースするための OptionParser オブジェクトを返します。 初回呼び出し時に自動的に生成されます。 この OptionParser#default_argv には self がセットされています。
...自身をパースするための OptionParser オブジェクトを返します。
初回呼び出し時に自動的に生成されます。
この OptionParser#default_argv には self がセットされています。
ブロックを与えた場合は、OptionParser を引数としてブロッ......ロックの実行途中で OptionParser::ParseError
が発生した場合は、全て rescue し、エラーメッセージを出力し、
nil を返します。
//emlist[][ruby]{
require 'optparse'
o = nil
ARGV.options{|opt|
opt.on('-a'){ o = true }
opt.parse!
}
p o #... -
Rake
:: Task # arg _ description (12202.0) -
-
Gem
:: Command # get _ one _ optional _ argument -> String (12201.0) -
コマンドラインからオプショナルな引数を取得して返します。
コマンドラインからオプショナルな引数を取得して返します。
@return 一つ以上、指定した場合は最初の値を返します。一つも指定していない場合は nil を返します。 -
OptionParser
:: Arguable # options=(opt) (12201.0) -
自身をパースするための OptionParser オブジェクトをセットします。
...身をパースするための OptionParser オブジェクトをセットします。
@param opt 自身をパースする OptionParser 、あるいは nil か false を指定します。
nil か false である場合、自身の options= メソッドと options メソッドを...