234件ヒット
[101-200件を表示]
(0.093秒)
ライブラリ
- ビルトイン (60)
- matrix (24)
- pathname (60)
- psych (36)
- rake (12)
-
rubygems
/ installer (12) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) -
webrick
/ httpresponse (12)
クラス
- Complex (24)
-
File
:: Stat (12) -
Gem
:: Installer (12) - Matrix (24)
- Numeric (24)
- Pathname (60)
-
Psych
:: Handler (12) -
Psych
:: Nodes :: Document (24) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) -
WEBrick
:: HTTPResponse (12)
モジュール
- Kernel (12)
キーワード
- children (12)
- directory (12)
- directory? (42)
-
each
_ child (24) - rectangular (36)
-
relative
_ path _ from (12) -
set
_ redirect (12) -
start
_ document (12) -
tag
_ directives (12) -
tag
_ directives= (12) - unpack (12)
検索結果
先頭5件
-
Shell
:: Filter # directory?(file) -> bool (6113.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory?... -
WEBrick
:: HTTPResponse # set _ redirect(status , url) -> () (6113.0) -
指定された url にリダイレクトするためのヘッダと内容(エンティティボディ)を 設定し例外 status を発生させます。
...ためのヘッダと内容(エンティティボディ)を
設定し例外 status を発生させます。
@param status WEBrick::HTTPStatus::Redirect を指定します。
@param url URL を指定します。
例:
require 'webrick'
res.set_redirect WEBrick::HTTPStatus::TemporaryRedirect... -
File
:: Stat # directory? -> bool (6107.0) -
ディレクトリの時に真を返します。
...ディレクトリの時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).directory? #=> false
//}
@see FileTest.#directory?... -
Kernel
# directory(dir) -> () (6107.0) -
与えられたディレクトリを作成するタスクを定義します。
...与えられたディレクトリを作成するタスクを定義します。
@param dir 作成するディレクトリを指定します。
例:
directory 'testdata/doc'... -
Pathname
# directory? -> bool (6107.0) -
FileTest.directory?(self.to_s) と同じです。
...FileTest.directory?(self.to_s) と同じです。
@see FileTest.#directory?... -
Psych
:: Nodes :: Document # tag _ directives -> [[String , String]] (6107.0) -
tag directive の配列を返します。
...tag directive の配列を返します。
@see Psych::Nodes::Document#tag_directives=,
Psych::Nodes::Document.new... -
Psych
:: Handler # start _ document(version , tag _ directives , implicit) -> () (119.0) -
YAML ドキュメントの始まりで呼び出されます。
...バージョンが
[major, minor] という配列で渡されます。宣言がない場合は空の配列が渡されます。
tag_directives には tag directive の配列が渡されます。
それぞれの tag は [prefix, suffix] という配列で表現されます。
implicit にはドキ......かが
真偽値で渡されます。
必要に応じてこのメソッドを override してください。
@param version バージョン
@param tag_directives tag directive の配列
@param implicit ドキュメントが implicit に始まっているかどうか
=== 例
以下の YAML に......version # => [1, 1]
tag_directives # => tenderlovemaking.com,2009:"
implicit # => false
以下の YAML に対しては
- x
- y
start_document に渡される引数は以下の通りです。
version # => []
tag_directives # => []
implicit # => true... -
Pathname
# children(with _ directory = true) -> [Pathname] (113.0) -
self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
...クト)の配列を返します。
ただし、 ".", ".." は要素に含まれません。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
@raise Errno::EXXX self が存在しないパスであったりディレクトリでなけれ... -
Pathname
# each _ child(with _ directory = true) -> Enumerator (113.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......al/share>
# => #<Pathname:/usr/local/var>
Pathname("/usr/local").each_child(false) {|f| p f }
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}
@see Pathname#children... -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (113.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......al/share>
# => #<Pathname:/usr/local/var>
Pathname("/usr/local").each_child(false) {|f| p f }
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}
@see Pathname#children...