388件ヒット
[301-388件を表示]
(0.102秒)
ライブラリ
- ビルトイン (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件
-
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (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... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (6200.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...ase_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......、self が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self へ......の相対パスが求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
WEBrick
:: HTTPResponse # set _ redirect(status , url) -> () (6200.0) -
指定された url にリダイレクトするためのヘッダと内容(エンティティボディ)を 設定し例外 status を発生させます。
...た url にリダイレクトするためのヘッダと内容(エンティティボディ)を
設定し例外 status を発生させます。
@param status WEBrick::HTTPStatus::Redirect を指定します。
@param url URL を指定します。
例:
require 'webrick'
res.set_redirect WEBrick......::HTTPStatus::TemporaryRedirect... -
WEBrick
:: HTTPStatus . # redirect?(code) -> bool (6200.0) -
指定された整数が表すステータスコードが 3XX である場合に true を返します。そうでない場合に false を返します。
...指定された整数が表すステータスコードが 3XX である場合に
true を返します。そうでない場合に false を返します。
@param code HTTP のステータスコードを表す整数か文字列を指定します。... -
Complex (6006.0)
-
複素数を扱うクラスです。
...omplex オブジェクトを作成するには、Kernel.#Complex、
Complex.rect、Complex.polar、Numeric#to_c、
String#to_c のいずれかを使用します。
//emlist[Complex オブジェクトの作り方][ruby]{
Complex(1) # => (1+0i)
Complex(2, 3) # => (2+3i)
Complex.polar......(2, 3) # => (-1.9799849932008908+0.2822400161197344i)
Complex(0.3) # => (0.3+0i)
Complex('0.3-0.5i') # => (0.3-0.5i)
Complex('2/3+3/4i') # => ((2/3)+(3/4)*i)
Complex('1@2') # => (-0.4161468365471424+0.9092974268256817i)
3.to_c # => (3+0i)
0.3.to_c # => (0.3......# => ((2/3)+(3/4)*i)
'1@2'.to_c # => (-0.4161468365471424+0.9092974268256817i)
//}
Complex オブジェクトは有理数の形式も実数の形式も扱う事ができます。
//emlist[例][ruby]{
Complex(1, 1) / 2 # => ((1/2)+(1/2)*i)
Complex(1, 1) / 2.0 # => (0.5+0.5i)
//}... -
Psych
:: Handler # start _ document(version , tag _ directives , implicit) -> () (3200.0) -
YAML ドキュメントの始まりで呼び出されます。
...YAML ドキュメントの始まりで呼び出されます。
version には YAML ドキュメントに宣言されているバージョンが
[major, minor] という配列で渡されます。宣言がない場合は空の配列が渡されます。
tag_directives には tag directive の配......ます。
implicit にはドキュメントが implicit に始まっているかどうかが
真偽値で渡されます。
必要に応じてこのメソッドを override してください。
@param version バージョン
@param tag_directives tag directive の配列
@param implicit ドキ......implicit に始まっているかどうか
=== 例
以下の YAML に対しては
%YAML 1.1
%TAG ! tag:tenderlovemaking.com,2009:
--- !squee
start_document に渡される引数は以下の通りです
version # => [1, 1]
tag_directives # => tenderlovemaking.com,2009:"
implici... -
Gem
:: Installer # unpack(directory) (3100.0) -
与えられたディレクトリに Gem を展開します。
...与えられたディレクトリに Gem を展開します。
@param directory Gem を展開するディレクトリを指定します。... -
Psych
:: Nodes :: Document . new(version=[] , tag _ directives=[] , implicit=false) -> Psych :: Nodes :: Document (200.0) -
Document オブジェクトを生成します。
...tag_directives には tag directive の配列を指定します。
それぞれの tag は [prefix, suffix] という文字列の配列で
表現します。
implicit にはドキュメントが implicit に始まっているかどうかを
真偽値で指定します。
@param version YAML ド......メントのバージョン
@param tag_directives tag directive の配列
@param implicit ドキュメントが implicit に始まっているかどうか
=== 例
以下の例では、YAML 1.1 のドキュメントで、
tag directive を1つ持ち、 implicit にドキュメントが開始
して......いる Document オブジェクトを生成しています。
Psych::Nodes::Document.new(
[1,1],
tenderlovemaking.com,2009:",
true)
@see Psych::Handler#start_document...