964件ヒット
[1-100件を表示]
(0.063秒)
種類
- インスタンスメソッド (928)
- 特異メソッド (24)
- 定数 (12)
クラス
- Pathname (952)
モジュール
- Kernel (12)
キーワード
- + (12)
-
/ (11) - <=> (12)
- == (12)
- === (12)
- Pathname (12)
-
SEPARATOR
_ PAT (12) - ascend (12)
- binread (12)
- binwrite (12)
- birthtime (11)
- chardev? (12)
- children (12)
- chmod (12)
- chown (12)
- cleanpath (12)
- delete (12)
- descend (12)
- directory? (12)
- dirname (12)
-
each
_ child (24) -
each
_ entry (15) -
each
_ line (24) - entries (12)
- eql? (12)
-
executable
_ real? (12) - extname (12)
- find (23)
- fnmatch (12)
- fnmatch? (12)
- ftype (12)
- glob (40)
- grpowned? (12)
- hash (12)
- join (12)
- lchmod (12)
- lchown (12)
- mkdir (12)
- open (24)
- opendir (24)
- parent (12)
- read (12)
- readable? (12)
-
readable
_ real? (12) - readlines (12)
- readlink (12)
- realdirpath (12)
- realpath (24)
- relative? (12)
-
relative
_ path _ from (12) - rename (12)
- rmdir (12)
- rmtree (12)
- root? (12)
- size (12)
- split (12)
- sub (24)
-
sub
_ ext (12) - sysopen (12)
-
to
_ path (12) -
to
_ s (12) - truncate (12)
- unlink (12)
- utime (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - write (12)
- zero? (12)
検索結果
先頭5件
-
Pathname
# readable _ real? -> bool (12202.0) -
FileTest.readable_real?(self.to_s) と同じです。
...FileTest.readable_real?(self.to_s) と同じです。
@see FileTest.#readable_real?... -
Pathname
# binwrite(string , offset=nil) -> Integer (6202.0) -
IO.binwrite(self.to_s, *args)と同じです。
...IO.binwrite(self.to_s, *args)と同じです。
@see IO.binwrite... -
Pathname
# children(with _ directory = true) -> [Pathname] (6202.0) -
self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
...self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
ただし、 ".", ".." は要素に含まれません。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
@raise Errno::EXXX self が存在しないパ......スであったりディレクトリでなければ例外が発生します。
//emlist[例][ruby]{
require 'pathname'
Pathname.new("/tmp").children # => [#<Pathname:.X11-unix>, #<Pathname:.iroha_unix>, ... ]
//}... -
Pathname
# opendir -> Dir (6202.0) -
Dir.open(self.to_s, &block) と同じです。
...Dir.open(self.to_s, &block) と同じです。
@see Dir.open... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (6202.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
...se_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory......絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対パ......スが求められないときに例外が発生します。
//emlist[例][ruby]{
require 'pathname'
path = Pathname.new("/tmp/foo")
base = Pathname.new("/tmp")
path.relative_path_from(base) # => #<Pathname:foo>
//}... -
Pathname
# write(string , offset=nil , **opts) -> Integer (6202.0) -
...IO.write(self.to_s, string, offset, **opts)と同じです。
@see IO.write... -
Pathname
# rmtree -> nil (6124.0) -
FileUtils.rm_r(self.to_s) と同じです。
...FileUtils.rm_r(self.to_s) と同じです。
@see FileUtils.#rm_r... -
Pathname
# binread(*args) -> String | nil (6102.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
# birthtime -> Time (6102.0) -
File.birthtime(self.to_s) を渡したものと同じです。
...File.birthtime(self.to_s) を渡したものと同じです。
@raise NotImplementedError Windows のような birthtime のない環境で発生します。
@see File.birthtime...