種類
- インスタンスメソッド (9)
- 特異メソッド (4)
- クラス (2)
- 定数 (1)
- モジュール関数 (1)
ライブラリ
- ビルトイン (2)
- matrix (2)
- pathname (5)
-
rubygems
/ ext / configure _ builder (1) -
rubygems
/ ext / ext _ conf _ builder (1) -
rubygems
/ ext / rake _ builder (1) -
webrick
/ httpresponse (1) -
webrick
/ httpstatus (4)
クラス
- File (1)
-
File
:: Stat (1) -
Gem
:: Ext :: ConfigureBuilder (1) -
Gem
:: Ext :: ExtConfBuilder (1) -
Gem
:: Ext :: RakeBuilder (1) - Matrix (2)
- Pathname (5)
-
WEBrick
:: HTTPResponse (1)
モジュール
キーワード
-
RC
_ TEMPORARY _ REDIRECT (1) - Redirect (1)
- TemporaryRedirect (1)
- build (3)
- children (1)
- directory? (3)
-
each
_ child (2) - rectangular (1)
- redirect? (1)
-
relative
_ path _ from (1) -
set
_ redirect (1)
検索結果
先頭5件
-
Matrix
# rect -> [Matrix , Matrix] (63922.0) -
行列を実部と虚部に分解したものを返します。
行列を実部と虚部に分解したものを返します。
//emlist[例][ruby]{
m.rect == [m.real, m.imag] # ==> true for all matrices m
//}
@see Matrix#imaginary, Matrix#real -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (46201.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory も相対パス、self が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_direct... -
Matrix
# rectangular -> [Matrix , Matrix] (27922.0) -
行列を実部と虚部に分解したものを返します。
行列を実部と虚部に分解したものを返します。
//emlist[例][ruby]{
m.rect == [m.real, m.imag] # ==> true for all matrices m
//}
@see Matrix#imaginary, Matrix#real -
File
:: Stat # directory? -> bool (27301.0) -
ディレクトリの時に真を返します。
ディレクトリの時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).directory? #=> false
//}
@see FileTest.#directory? -
Pathname
# directory? -> bool (27301.0) -
FileTest.directory?(self.to_s) と同じです。
FileTest.directory?(self.to_s) と同じです。
@see FileTest.#directory? -
WEBrick
:: HTTPStatus . # redirect?(code) -> bool (27301.0) -
指定された整数が表すステータスコードが 3XX である場合に true を返します。そうでない場合に false を返します。
指定された整数が表すステータスコードが 3XX である場合に
true を返します。そうでない場合に false を返します。
@param code HTTP のステータスコードを表す整数か文字列を指定します。 -
WEBrick
:: HTTPStatus :: Redirect (27001.0) -
HTTP のステータスコード転送 3XX の親クラスです。
HTTP のステータスコード転送 3XX の親クラスです。 -
WEBrick
:: HTTPStatus :: TemporaryRedirect (27001.0) -
HTTP のステータスコード 307 Temporary Redirect を表すクラスです。
HTTP のステータスコード 307 Temporary Redirect を表すクラスです。 -
File
. directory?(path) -> bool (18601.0) -
FileTest.#directory? と同じです。
FileTest.#directory? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。 -
WEBrick
:: HTTPResponse # set _ redirect(status , url) -> () (18601.0) -
指定された url にリダイレクトするためのヘッダと内容(エンティティボディ)を 設定し例外 status を発生させます。
指定された url にリダイレクトするためのヘッダと内容(エンティティボディ)を
設定し例外 status を発生させます。
@param status WEBrick::HTTPStatus::Redirect を指定します。
@param url URL を指定します。
例:
require 'webrick'
res.set_redirect WEBrick::HTTPStatus::TemporaryRedirect -
WEBrick
:: HTTPStatus :: RC _ TEMPORARY _ REDIRECT (18301.0) -
HTTP のステータスコードを表す整数です。
HTTP のステータスコードを表す整数です。
require 'webrick'
p WEBrick::HTTPStatus::RC_INTERNAL_SERVER_ERROR #=> 500 -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (9901.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
# children(with _ directory = true) -> [Pathname] (9601.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
# each _ child(with _ directory = true) -> Enumerator (9601.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... -
Gem
:: Ext :: ConfigureBuilder . build(extension , directory , dest _ path , results) -> Array (601.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 (601.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 (601.0) -
@todo
@todo
mkrf_conf が存在する場合は、それを実行してから Rake を実行します。
@param extension ファイル名を指定します。
@param directory このメソッドでは使用していません。
@param dest_path ???
@param results コマンドの実行結果を格納します。破壊的に変更されます。
@see Gem::Ext::Builder.make