るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.010秒)

別のキーワード

  1. _builtin rect
  2. matrix rect
  3. complex rect
  4. numeric rect

検索結果

Complex.rect(r, i = 0) -> Complex (54343.0)

実部が r、虚部が i である Complex クラスのオブジェクトを生成します。

実部が r、虚部が i である Complex クラスのオブジェクトを生成します。

@param r 生成する複素数の実部。

@param i 生成する複素数の虚部。省略した場合は 0 です。

//emlist[例][ruby]{
Complex.rect(1) # => (1+0i)
Complex.rect(1, 2) # => (1+2i)
Complex.rectangular(1, 2) # => (1+2i)
//}

@see Kernel.#Complex

Complex.rectangular(r, i = 0) -> Complex (18343.0)

実部が r、虚部が i である Complex クラスのオブジェクトを生成します。

実部が r、虚部が i である Complex クラスのオブジェクトを生成します。

@param r 生成する複素数の実部。

@param i 生成する複素数の虚部。省略した場合は 0 です。

//emlist[例][ruby]{
Complex.rect(1) # => (1+0i)
Complex.rect(1, 2) # => (1+2i)
Complex.rectangular(1, 2) # => (1+2i)
//}

@see Kernel.#Complex

File.directory?(path) -> bool (18304.0)

FileTest.#directory? と同じです。

FileTest.#directory? と同じです。

@param path パスを表す文字列か IO オブジェクトを指定します。

Gem::Ext::Builder.redirector -> String (18304.0)

@todo

@todo

'2>&1' という文字列を返します。

Gem::SourceIndex.installed_spec_directories -> [String] (18304.0)

gemspec ファイルがインストールされているディレクトリのリストを返します。

gemspec ファイルがインストールされているディレクトリのリストを返します。

@see Gem.#path

絞り込み条件を変える

Gem::Version.correct?(version) -> bool (18304.0)

version が正しいバージョンであれば true を返します。そうでなければ false を返します。

version が正しいバージョンであれば true を返します。そうでなければ 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...

Gem::Ext::ConfigureBuilder.build(extension, directory, dest_path, results) -> Array (304.0)

@todo

@todo

Makefile が存在しない場合は、configure スクリプトを実行して
Makefile を作成してから make を実行します。

@param extension このメソッドでは使用しません。

@param directory

@param dest_path

@param results コマンドの実行結果を格納します。破壊的に変更されます。

@see Gem::Ext::Builder.make

Gem::Ext::ExtConfBuilder.build(extension, directory, dest_path, results) -> Array (304.0)

@todo

@todo

Makefile が存在しない場合は、extconf.rb を実行して
Makefile を作成してから make を実行します。

@param extension ファイル名を指定します。

@param directory このメソッドでは使用していません。

@param dest_path ???

@param results コマンドの実行結果を格納します。破壊的に変更されます。

@see Gem::Ext::Builder.make

Gem::Ext::RakeBuilder.build(extension, directory, dest_path, results) -> Array (304.0)

@todo

@todo

mkrf_conf が存在する場合は、それを実行してから Rake を実行します。

@param extension ファイル名を指定します。

@param directory このメソッドでは使用していません。

@param dest_path ???

@param results コマンドの実行結果を格納します。破壊的に変更されます。

@see Gem::Ext::Builder.make

Gem::Indexer.new(directory) -> Gem::Indexer (304.0)

与えられたディレクトリに Gem リポジトリのインデックスを作成するために 自身を初期化します。

与えられたディレクトリに Gem リポジトリのインデックスを作成するために
自身を初期化します。

絞り込み条件を変える

Psych::Nodes::Document.new(version=[], tag_directives=[], implicit=false) -> Psych::Nodes::Document (304.0)

Document オブジェクトを生成します。

Document オブジェクトを生成します。

version にはドキュメントのバージョンを指定します。
[major, minor] という配列で指定します。

tag_directives には tag directive の配列を指定します。
それぞれの tag は [prefix, suffix] という文字列の配列で
表現します。

implicit にはドキュメントが implicit に始まっているかどうかを
真偽値で指定します。

@param version YAML ドキュメントのバージョン
@param tag_directives tag directive の配列...