ライブラリ
- ビルトイン (132)
- matrix (11)
-
net
/ ftp (18) - pathname (55)
- psych (22)
- rake (11)
-
rubygems
/ ext / builder (11) -
rubygems
/ ext / configure _ builder (11) -
rubygems
/ ext / ext _ conf _ builder (11) -
rubygems
/ ext / rake _ builder (11) -
rubygems
/ installer (11) -
rubygems
/ package / tar _ reader / entry (11) -
rubygems
/ source _ index (11) -
rubygems
/ version (11) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) -
webrick
/ httpresponse (11) -
webrick
/ httpstatus (11)
クラス
- Complex (44)
- File (11)
-
File
:: Stat (11) -
Gem
:: Ext :: Builder (11) -
Gem
:: Ext :: ConfigureBuilder (11) -
Gem
:: Ext :: ExtConfBuilder (11) -
Gem
:: Ext :: RakeBuilder (11) -
Gem
:: Installer (11) -
Gem
:: Package :: TarReader :: Entry (11) -
Gem
:: SourceIndex (11) -
Gem
:: Version (11) - Matrix (11)
-
Net
:: FTP :: MLSxEntry (18) - Numeric (11)
- Pathname (55)
-
Psych
:: Handler (11) -
Psych
:: Nodes :: Document (11) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) -
WEBrick
:: HTTPResponse (11)
モジュール
-
File
:: Constants (11) - FileTest (11)
- Kernel (33)
-
WEBrick
:: HTTPStatus (11)
キーワード
- Complex (33)
- DIRECT (11)
- build (33)
- children (11)
- correct? (11)
- directory (11)
- directory? (82)
-
directory
_ makable? (9) -
each
_ child (22) -
installed
_ spec _ directories (11) - new (11)
- rectangular (44)
- redirect? (11)
- redirector (11)
-
relative
_ path _ from (11) -
set
_ redirect (11) -
st
_ add _ direct (11) -
start
_ document (11) - unpack (11)
検索結果
先頭5件
-
Gem
:: Ext :: Builder . redirector -> String (9100.0) -
@todo
@todo
'2>&1' という文字列を返します。 -
Kernel
# directory(dir) -> () (9100.0) -
与えられたディレクトリを作成するタスクを定義します。
...与えられたディレクトリを作成するタスクを定義します。
@param dir 作成するディレクトリを指定します。
例:
directory 'testdata/doc'... -
void st
_ add _ direct(st _ table *table , char *key , char *value) (6300.0) -
st_insert() と似ているが、同じハッシュ値を持つエントリーに対する 「同値検査」を省略する。key がまだ登録されていないことがはっきり している場合には、少し高速に登録できる。
st_insert() と似ているが、同じハッシュ値を持つエントリーに対する
「同値検査」を省略する。key がまだ登録されていないことがはっきり
している場合には、少し高速に登録できる。 -
Kernel
. # Complex(r , i = 0) -> Complex (6206.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
@param s 生成する複素数を表す文字列。
@raise ArgumentError 変換......合に発生します。
//emlist[例][ruby]{
Complex(1) # => (1+0i)
Complex(1, 2) # => (1+2i)
Complex('1+1i') # => (1+1i)
Complex('1+1j') # => (1+1i)
# Complex.polar(10, 10) と同一。
Complex('10@10') # => (-8.390715290764524-5.440211108893697i)
Complex('_') # => ArgumentError
//......Complex(a, b) を a+bi として計算した 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.... -
Kernel
. # Complex(r , i = 0 , exception: true) -> Complex | nil (6206.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
@param s 生成する複素数を表す文字列。
@param exception false を指定すると、......わりに nil を返します。
@raise ArgumentError 変換できないオブジェクトを指定した場合に発生します。
//emlist[例][ruby]{
Complex(1) # => (1+0i)
Complex(1, 2) # => (1+2i)
Complex('1+1i') # => (1+1i)
Complex('1+1j') # => (1+1i)
# Complex.polar(10, 10) と......Complex(a, b) を a+bi として計算した 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.... -
Kernel
. # Complex(s) -> Complex (6206.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
@param s 生成する複素数を表す文字列。
@raise ArgumentError 変換......合に発生します。
//emlist[例][ruby]{
Complex(1) # => (1+0i)
Complex(1, 2) # => (1+2i)
Complex('1+1i') # => (1+1i)
Complex('1+1j') # => (1+1i)
# Complex.polar(10, 10) と同一。
Complex('10@10') # => (-8.390715290764524-5.440211108893697i)
Complex('_') # => ArgumentError
//......Complex(a, b) を a+bi として計算した 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.... -
Kernel
. # Complex(s , exception: true) -> Complex | nil (6206.0) -
実部が r、虚部が i である Complex クラスのオブジェクトを生成します。
...部が i である Complex クラスのオブジェクトを生成します。
@param r 生成する複素数の実部。
@param i 生成する複素数の虚部。省略した場合は 0 です。
@param s 生成する複素数を表す文字列。
@param exception false を指定すると、......わりに nil を返します。
@raise ArgumentError 変換できないオブジェクトを指定した場合に発生します。
//emlist[例][ruby]{
Complex(1) # => (1+0i)
Complex(1, 2) # => (1+2i)
Complex('1+1i') # => (1+1i)
Complex('1+1j') # => (1+1i)
# Complex.polar(10, 10) と......Complex(a, b) を a+bi として計算した 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.... -
Gem
:: Package :: TarReader :: Entry # directory? -> bool (6200.0) -
自身がディレクトリであれば、真を返します。 そうでない場合は、偽を返します。
自身がディレクトリであれば、真を返します。
そうでない場合は、偽を返します。 -
Gem
:: Version . correct?(version) -> 0 | nil (6200.0) -
version が正しいバージョンであれば 0 を返します。そうでなければ nil を返します。
...ージョンであれば 0 を返します。そうでなければ nil を返します。
//emlist[][ruby]{
p Gem::Version.correct?("9.1") # => 0
p Gem::Version.correct?("incorrect") # => nil
p Gem::Version.correct?(nil) # => 0
//}
@param version バージョンを文字列か数値... -
Gem
:: Version . correct?(version) -> bool (6200.0) -
version が正しいバージョンであれば true を返します。そうでなければ false を返します。
...なければ false を返します。
//emlist[][ruby]{
p Gem::Version.correct?("9.1") # => true
p Gem::Version.correct?("incorrect") # => false
p Gem::Version.correct?(nil) # => true
# nil versions are discouraged and will be deprecated in Rubygems 4
# version が nil のときは t... -
Pathname
# children(with _ directory = true) -> [Pathname] (6200.0) -
self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
...self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
ただし、 ".", ".." は要素に含まれません。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
@raise Errno::EXXX self が存在しないパ......スであったりディレクトリでなければ例外が発生します。
//emlist[例][ruby]{
require 'pathname'
Pathname.new("/tmp").children # => [#<Pathname:.X11-unix>, #<Pathname:.iroha_unix>, ... ]
//}... -
Pathname
# directory? -> bool (6200.0) -
FileTest.directory?(self.to_s) と同じです。
...FileTest.directory?(self.to_s) と同じです。
@see FileTest.#directory?... -
Pathname
# each _ child(with _ directory = true) -> Enumerator (6200.0) -
self.children(with_directory).each と同じです。
...self.children(with_directory).each と同じです。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname......:/usr/local/etc>
# => #<Pathname:/usr/local/include>
# => #<Pathname:/usr/local/lib>
# => #<Pathname:/usr/local/opt>
# => #<Pathname:/usr/local/sbin>
# => #<Pathname:/usr/local/share>
# => #<Pathname:/usr/local/var>
Pathname("/usr/local").each_child(false) {|f| p f }
# => #<Pathname:bin>
# => #<Pat......hname:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}
@see Pathname#children...