386件ヒット
[1-100件を表示]
(0.035秒)
種類
- インスタンスメソッド (220)
- 文書 (144)
- 定数 (12)
- 特異メソッド (10)
クラス
-
Net
:: FTP (30) -
Net
:: FTP :: MLSxEntry (10) - Pathname (192)
モジュール
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Ruby用語集 (12)
-
TO
_ PATH (12) - basename (12)
- children (12)
- cleanpath (12)
- directory? (12)
-
each
_ child (24) -
each
_ entry (15) - empty? (9)
- ftype (12)
-
make
_ symlink (12) - mlsd (20)
- mlst (10)
-
parse
_ file (10) -
relative
_ path _ from (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 5 feature (12) -
ruby 1
. 9 feature (12) - split (12)
- sticky? (12)
- symlink? (12)
- sysopen (12)
検索結果
先頭5件
-
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) -
パス名を返します。
パス名を返します。