55件ヒット
[1-55件を表示]
(0.010秒)
ライブラリ
- ビルトイン (33)
- rubygems (11)
-
webrick
/ httpstatus (11)
モジュール
- FileTest (11)
- Gem (11)
- Kernel (22)
-
WEBrick
:: HTTPStatus (11)
キーワード
- Complex (22)
- directory? (11)
-
ensure
_ gem _ subdirectories (11) - redirect? (11)
検索結果
先頭5件
-
FileTest
. # directory?(file) -> bool (6101.0) -
ファイルがディレクトリの時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...ブジェクト file が既に close されていた場合に発生します。
例:
FileTest.directory?('/etc') # => true
FileTest.directory?('/etc/passwd') # => false
f = File.open('/etc')
FileTest.directory?(f) # => true
f.close
FileTest.directory?(f) # => IOError: closed stream... -
Gem
. # ensure _ gem _ subdirectories (6101.0) -
Gem をインストールするために必要なサブディレクトリを適切に作成します。
...Gem をインストールするために必要なサブディレクトリを適切に作成します。
ディレクトリを作成する権限が無い場合もこのメソッドからは例外は発生しません。
@see Gem::DIRECTORIES... -
WEBrick
:: HTTPStatus . # redirect?(code) -> bool (6101.0) -
指定された整数が表すステータスコードが 3XX である場合に true を返します。そうでない場合に false を返します。
指定された整数が表すステータスコードが 3XX である場合に
true を返します。そうでない場合に false を返します。
@param code HTTP のステータスコードを表す整数か文字列を指定します。 -
Kernel
. # Complex(r , i = 0) -> Complex (7.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...ェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.new、Complex.new! は 1.9 系では廃止されました。... -
Kernel
. # Complex(r , i = 0 , exception: true) -> Complex | nil (7.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...ェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.new、Complex.new! は 1.9 系では廃止されました。... -
Kernel
. # Complex(s) -> Complex (7.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...ェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.new、Complex.new! は 1.9 系では廃止されました。... -
Kernel
. # Complex(s , exception: true) -> Complex | nil (7.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...ェクトを返しま
す。
//emlist[例][ruby]{
Complex('1+1i', '2+3i') # => (-2+3i)
Complex('1+1i') + Complex('2+3i') * Complex('i') # => (-2+3i)
//}
@see Complex.rect、Complex.rectangular
[注意] Complex.new、Complex.new! は 1.9 系では廃止されました。...