111件ヒット
[1-100件を表示]
(0.073秒)
別のキーワード
ライブラリ
- etc (24)
- pathname (51)
-
rubygems
/ remote _ fetcher (12) -
rubygems
/ spec _ fetcher (24)
クラス
-
Etc
:: Passwd (24) -
Gem
:: RemoteFetcher (12) -
Gem
:: SpecFetcher (24) - Pathname (51)
キーワード
-
cache
_ dir (12) - dir= (12)
- download (12)
-
each
_ child (24) -
each
_ entry (15) - entries (12)
検索結果
先頭5件
-
Etc
:: Passwd # dir -> String (29102.0) -
このユーザのホームディレクトリを表すパスを返します。
このユーザのホームディレクトリを表すパスを返します。 -
Gem
:: SpecFetcher # dir -> String (21102.0) -
このクラスが使用するキャッシュ用ディレクトリの名前を返します。
このクラスが使用するキャッシュ用ディレクトリの名前を返します。 -
Etc
:: Passwd # dir=(dir) (17203.0) -
このユーザのホームディレクトリを表すパスを設定します。
このユーザのホームディレクトリを表すパスを設定します。 -
Gem
:: SpecFetcher # cache _ dir(uri) -> String (9102.0) -
uri の内容を書き込むローカルのディレクトリ名を返します。
uri の内容を書き込むローカルのディレクトリ名を返します。
@param uri -
Gem
:: RemoteFetcher # download(spec , source _ uri , install _ dir = Gem . dir) -> String (3209.0) -
source_uri から取得した Gem パッケージをキャッシュディレクトリに配置します。
...スを指定します。
@param source_uri 取得先の URI を指定します。
@param install_dir ダウンロードしたファイルの配置先を指定します。
@return ローカルにコピーした Gem ファイルのパスを返します。
@raise Gem::RemoteFetcher::FetchError... -
Pathname
# each _ child(with _ directory = true) -> Enumerator (113.0) -
self.children(with_directory).each と同じです。
...th_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/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 Pat... -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (113.0) -
self.children(with_directory).each と同じです。
...th_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/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 Pat... -
Pathname
# each _ entry -> Enumerator (29.0) -
Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。
...Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_entry {|f| p f }
# => #<Pathname:.>
# => #<Pathname:..>
# => #<Pathname:bin>
# => #<Pathna......me:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}
@see Dir.foreach... -
Pathname
# each _ entry {|pathname| . . . } -> nil (29.0) -
Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。
...Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_entry {|f| p f }
# => #<Pathname:.>
# => #<Pathname:..>
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathna......me:opt>
//}
@see Dir.foreach......Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_entry {|f| p f }
# => #<Pathname:.>
# => #<Pathname:..>
# => #<Pathname:bin>
# => #<Pathna......me:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}
@see Dir.foreach... -
Pathname
# entries -> [Pathname] (13.0) -
self に含まれるファイルエントリ名を元にした Pathname オブジェクトの配列を返します。
...e 'pp'
pp Pathname('/usr/local').entries
# => [#<Pathname:.>,
# #<Pathname:..>,
# #<Pathname:bin>,
# #<Pathname:etc>,
# #<Pathname:include>,
# #<Pathname:lib>,
# #<Pathname:opt>,
# #<Pathname:sbin>,
# #<Pathname:share>,
# #<Pathname:var>]
//}
@see Dir.entries...