266件ヒット
[201-266件を表示]
(0.242秒)
ライブラリ
- ビルトイン (48)
- matrix (12)
-
net
/ ftp (20) - pathname (60)
- psych (36)
- rake (12)
-
rubygems
/ indexer (36) -
rubygems
/ installer (12) -
rubygems
/ package / tar _ reader / entry (12) -
shell
/ command-processor (6) -
webrick
/ httpresponse (12)
クラス
- Complex (24)
-
Gem
:: Indexer (36) -
Gem
:: Installer (12) -
Gem
:: Package :: TarReader :: Entry (12) - Matrix (12)
-
Net
:: FTP :: MLSxEntry (20) - Numeric (24)
- Pathname (60)
-
Psych
:: Handler (12) -
Psych
:: Nodes :: Document (24) -
Shell
:: CommandProcessor (6) -
WEBrick
:: HTTPResponse (12)
モジュール
- Kernel (12)
キーワード
- children (12)
-
dest
_ directory (12) - directory (24)
- directory? (40)
-
directory
_ makable? (10) -
each
_ child (24) -
make
_ temp _ directories (12) - rectangular (36)
-
relative
_ path _ from (12) -
set
_ redirect (12) -
start
_ document (12) -
tag
_ directives (12) -
tag
_ directives= (12) - unpack (12)
検索結果
先頭5件
-
Gem
:: Installer # unpack(directory) (6201.0) -
与えられたディレクトリに Gem を展開します。
...与えられたディレクトリに Gem を展開します。
@param directory Gem を展開するディレクトリを指定します。... -
Pathname
# children(with _ directory = true) -> [Pathname] (6201.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>, ... ]
//}... -
Psych
:: Handler # start _ document(version , tag _ directives , implicit) -> () (6201.0) -
YAML ドキュメントの始まりで呼び出されます。
...まりで呼び出されます。
version には YAML ドキュメントに宣言されているバージョンが
[major, minor] という配列で渡されます。宣言がない場合は空の配列が渡されます。
tag_directives には tag directive の配列が渡されます。
それ......@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:"
implicit # => false
以下の YAML に対しては
- x
- y
start_document に渡される引数は以下の通りです。
version # => []
tag_directives # => []
implicit... -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (3301.0) -
self.children(with_directory).each と同じです。
....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......athname:/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>
# => #<Pathname:etc>
# => #<Pathnam......e:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}
@see Pathname#children... -
Pathname
# each _ child(with _ directory = true) -> Enumerator (3201.0) -
self.children(with_directory).each と同じです。
....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......athname:/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>
# => #<Pathname:etc>
# => #<Pathnam......e:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}
@see Pathname#children... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (3201.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...ase_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......が絶対パスなら
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>
//}...