るりまサーチ

最速Rubyリファレンスマニュアル検索!
13件ヒット [1-13件を表示] (0.095秒)
トップページ > クエリ:self[x] > クエリ:t[x] > クエリ:each_entry[x] > クラス:Pathname[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. fiddle type_size_t
  4. fiddle type_intptr_t
  5. matrix t

ライブラリ

検索結果

Pathname#each_entry -> Enumerator (24225.0)

Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。

...ach(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>
# => #<Pathname:etc>...
...# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}

@see Dir.foreach...

Pathname#each_entry {|pathname| ... } -> nil (24225.0)

Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。

...ch(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>
# => #<Pathname:opt>
/...
...ach(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>
# => #<Pathname:etc>...
...# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}

@see Dir.foreach...