1172件ヒット
[101-200件を表示]
(0.129秒)
種類
- インスタンスメソッド (925)
- 文書 (129)
- 特異メソッド (96)
- 定数 (22)
ライブラリ
- ビルトイン (85)
-
net
/ ftp (36) - pathname (882)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- File (66)
-
Net
:: FTP (27) -
Net
:: FTP :: MLSxEntry (9) - Pathname (871)
-
RDoc
:: Options (22) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
モジュール
-
File
:: Constants (11) - Kernel (11)
-
RubyVM
:: AbstractSyntaxTree (8)
キーワード
- + (11)
-
/ (10) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (11)
- == (11)
- === (11)
-
FNM
_ PATHNAME (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Pathname (11)
- Ruby用語集 (11)
-
SEPARATOR
_ PAT (11) - ascend (11)
- binread (11)
- binwrite (11)
- birthtime (10)
- chardev? (11)
- children (11)
- chmod (11)
- chown (11)
- cleanpath (11)
- delete (11)
- descend (11)
- directory? (11)
- dirname (11)
-
each
_ child (22) -
each
_ entry (13) -
each
_ line (22) - entries (11)
- eql? (11)
-
executable
_ real? (11) - extname (11)
- find (21)
- fnmatch (22)
- fnmatch? (22)
- ftype (11)
- glob (36)
- grpowned? (11)
- hash (11)
- join (11)
- lchmod (11)
- lchown (11)
- mkdir (11)
- mlsd (18)
- mlst (9)
- open (22)
- opendir (22)
-
page
_ dir (11) - parent (11)
-
parse
_ file (8) - path (11)
- read (11)
- readable? (11)
-
readable
_ real? (11) - readlines (11)
- readlink (11)
- realdirpath (22)
- realpath (33)
- relative? (11)
-
relative
_ path _ from (11) - rename (11)
- rmdir (11)
- rmtree (11)
- root (11)
- root? (11)
-
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 5 feature (11) -
ruby 1
. 9 feature (11) - size (11)
- split (40)
- sub (22)
-
sub
_ ext (11) - sysopen (11)
-
to
_ path (11) -
to
_ s (11) - truncate (11)
- unlink (11)
- utime (11)
-
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (11)
- zero? (11)
検索結果
先頭5件
-
Pathname
# dirname -> Pathname (23335.0) -
Pathname.new(File.dirname(self.to_s)) と同じです。
...Pathname.new(File.dirname(self.to_s)) と同じです。
//emlist[例][ruby]{
require "pathname"
Pathname('/usr/bin/shutdown').dirname # => #<Pathname:/usr/bin>
//}
@see File.dirname... -
Pathname
# readlink -> Pathname (23317.0) -
Pathname.new(File.readlink(self.to_s)) と同じです。
...Pathname.new(File.readlink(self.to_s)) と同じです。
@see File.readlink... -
Pathname
# binwrite(string , offset=nil) -> Integer (23300.0) -
IO.binwrite(self.to_s, *args)と同じです。
...IO.binwrite(self.to_s, *args)と同じです。
@see IO.binwrite... -
Pathname
# opendir -> Dir (23300.0) -
Dir.open(self.to_s, &block) と同じです。
...Dir.open(self.to_s, &block) と同じです。
@see Dir.open... -
Pathname
# write(string , offset=nil , **opts) -> Integer (23300.0) -
...IO.write(self.to_s, string, offset, **opts)と同じです。
@see IO.write... -
Pathname
# each _ entry -> Enumerator (23271.0) -
Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。
...r.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>
# => #<Pathname......:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}
@see Dir.foreach... -
Pathname
# binread(*args) -> String | nil (23236.0) -
IO.binread(self.to_s, *args)と同じです。
...IO.binread(self.to_s, *args)と同じです。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("testfile")
pathname.binread # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
pathname.binread(20) # => "This is line one\nThi"
pathname.binread(2......0, 10) # => "ne one\nThis is line "
//}
@see IO.binread... -
Pathname
# rmtree -> nil (23222.0) -
FileUtils.rm_r(self.to_s) と同じです。
...FileUtils.rm_r(self.to_s) と同じです。
@see FileUtils.#rm_r... -
Pathname
# relative? -> bool (23218.0) -
self が相対パス指定であれば真を返します。
...self が相対パス指定であれば真を返します。
//emlist[例][ruby]{
require 'pathname'
p = Pathname.new('/im/sure')
p.relative? #=> false
p = Pathname.new('not/so/sure')
p.relative? #=> true
//}... -
Pathname
# root? -> bool (23218.0) -
self がルートディレクトリであれば真を返します。判断は文字列操作によっ て行われ、ファイルシステムはアクセスされません。
...self がルートディレクトリであれば真を返します。判断は文字列操作によっ
て行われ、ファイルシステムはアクセスされません。
//emlist[例][ruby]{
require 'pathname'
Pathname('/').root? # => true
Pathname('/im/sure').root? # => false
//}...