るりまサーチ

最速Rubyリファレンスマニュアル検索!
386件ヒット [1-100件を表示] (0.035秒)
トップページ > クエリ:y[x] > クエリ:pathname[x]

別のキーワード

  1. psych psych_y
  2. psych y
  3. kernel y
  4. kernel psych_y
  5. y kernel

検索結果

<< 1 2 3 ... > >>

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

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

...lf.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>
//}

@...
...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:i...
...nclude>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}

@see Dir.foreach...

Pathname#each_entry -> Enumerator (23171.0)

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

...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:i...
...nclude>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}

@see Dir.foreach...

Pathname#empty? -> bool (23142.0)

ディレクトリに対しては Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。

...は Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。

//emlist[例 ディレクトリの場合][ruby]{
require "pathname"
require 'tmpdir'

Pathname
("/usr/local").empty? # => false
Dir.mktmpdir { |dir| Pathname(dir).empty? } # => true
/...
.../}

//emlist[例 ファイルの場合][ruby]{
require "pathname"
require 'tempfile'

Pathname
("testfile").empty? # => false
Tempfile.create("tmp") { |tmp| Pathname(tmp).empty? } # => true
//}

@see Dir.empty?, FileTest.#empty?, Pathname#zero?...

Pathname#directory? -> bool (23100.0)

FileTest.directory?(self.to_s) と同じです。

...FileTest.directory?(self.to_s) と同じです。


@see FileTest.#directory?...

Pathname#ftype -> String (23100.0)

File.ftype(self.to_s) と同じです。

...File.ftype(self.to_s) と同じです。


@see File.ftype...

絞り込み条件を変える

Pathname#make_symlink(old) -> 0 (23100.0)

File.symlink(old, self.to_s) と同じです。

...File.symlink(old, self.to_s) と同じです。


@see File.symlink...

Pathname#sticky? -> bool (23100.0)

FileTest.sticky?(self.to_s) と同じです。

...FileTest.sticky?(self.to_s) と同じです。


@see FileTest.#sticky?...

Pathname#symlink? -> bool (23100.0)

FileTest.symlink?(self.to_s) と同じです。

...FileTest.symlink?(self.to_s) と同じです。


@see FileTest.#symlink?...

Pathname#sysopen(*args) -> Integer (23100.0)

IO.sysopen(self.to_s, *args)と同じです。

...IO.sysopen(self.to_s, *args)と同じです。


@see IO.sysopen...

Net::FTP::MLSxEntry#pathname -> String (21101.0)

パス名を返します。

パス名を返します。

絞り込み条件を変える

<< 1 2 3 ... > >>