15件ヒット
[1-15件を表示]
(0.135秒)
別のキーワード
ライブラリ
- ビルトイン (5)
- matrix (2)
- pathname (3)
- psych (2)
- shell (1)
-
shell
/ command-processor (1) -
shell
/ filter (1)
クラス
- Complex (2)
-
File
:: Stat (1) - Matrix (2)
- Numeric (2)
- Pathname (3)
-
Psych
:: Nodes :: Document (2) - Shell (1)
-
Shell
:: CommandProcessor (1) -
Shell
:: Filter (1)
キーワード
- directory? (5)
-
each
_ child (2) - rectangular (3)
-
tag
_ directives (1) -
tag
_ directives= (1)
検索結果
先頭5件
-
Numeric
# rect -> [Numeric , Numeric] (54433.0) -
[self, 0] を返します。
[self, 0] を返します。
//emlist[例][ruby]{
1.rect # => [1, 0]
-1.rect # => [-1, 0]
1.0.rect # => [1.0, 0]
-1.0.rect # => [-1.0, 0]
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
@see Complex#rect -
Complex
# rect -> [Numeric , Numeric] (54415.0) -
実部と虚部を配列にして返します。
実部と虚部を配列にして返します。
//emlist[例][ruby]{
Complex(3).rect # => [3, 0]
Complex(3.5).rect # => [3.5, 0]
Complex(3, 2).rect # => [3, 2]
//}
@see Numeric#rect -
Matrix
# rect -> [Matrix , Matrix] (54361.0) -
行列を実部と虚部に分解したものを返します。
行列を実部と虚部に分解したものを返します。
//emlist[例][ruby]{
m.rect == [m.real, m.imag] # ==> true for all matrices m
//}
@see Matrix#imaginary, Matrix#real -
Numeric
# rectangular -> [Numeric , Numeric] (18433.0) -
[self, 0] を返します。
[self, 0] を返します。
//emlist[例][ruby]{
1.rect # => [1, 0]
-1.rect # => [-1, 0]
1.0.rect # => [1.0, 0]
-1.0.rect # => [-1.0, 0]
//}
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
@see Complex#rect -
Complex
# rectangular -> [Numeric , Numeric] (18415.0) -
実部と虚部を配列にして返します。
実部と虚部を配列にして返します。
//emlist[例][ruby]{
Complex(3).rect # => [3, 0]
Complex(3.5).rect # => [3.5, 0]
Complex(3, 2).rect # => [3, 2]
//}
@see Numeric#rect -
Matrix
# rectangular -> [Matrix , Matrix] (18361.0) -
行列を実部と虚部に分解したものを返します。
行列を実部と虚部に分解したものを返します。
//emlist[例][ruby]{
m.rect == [m.real, m.imag] # ==> true for all matrices m
//}
@see Matrix#imaginary, Matrix#real -
Psych
:: Nodes :: Document # tag _ directives=(tags) (18358.0) -
tag directive の配列を設定します。
tag directive の配列を設定します。
@param tags 設定する tag directive の配列
@see Psych::Nodes::Document#tag_directives,
Psych::Nodes::Document.new -
Shell
# directory?(file) -> bool (18358.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory? -
Shell
:: CommandProcessor # directory?(file) -> bool (18358.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory? -
Shell
:: Filter # directory?(file) -> bool (18358.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory? -
File
:: Stat # directory? -> bool (18340.0) -
ディレクトリの時に真を返します。
ディレクトリの時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).directory? #=> false
//}
@see FileTest.#directory? -
Pathname
# directory? -> bool (18340.0) -
FileTest.directory?(self.to_s) と同じです。
FileTest.directory?(self.to_s) と同じです。
@see FileTest.#directory? -
Psych
:: Nodes :: Document # tag _ directives -> [[String , String]] (18340.0) -
tag directive の配列を返します。
tag directive の配列を返します。
@see Psych::Nodes::Document#tag_directives=,
Psych::Nodes::Document.new -
Pathname
# each _ child(with _ directory = true) -> Enumerator (358.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:/us... -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (358.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:/us...