844件ヒット
[1-100件を表示]
(0.184秒)
種類
- インスタンスメソッド (653)
- 特異メソッド (96)
- 文書 (84)
- 定数 (11)
ライブラリ
- ビルトイン (85)
-
net
/ ftp (36) - pathname (599)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- File (66)
-
Net
:: FTP (27) -
Net
:: FTP :: MLSxEntry (9) - Pathname (599)
-
RDoc
:: Options (22) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
モジュール
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (11)
-
FNM
_ PATHNAME (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - Ruby用語集 (11)
- binread (11)
- binwrite (11)
- birthtime (10)
- children (11)
- chmod (11)
- chown (11)
- cleanpath (11)
- delete (11)
- directory? (11)
- dirname (11)
-
each
_ child (22) -
each
_ entry (11) -
each
_ line (22) - entries (11)
- extname (11)
- find (21)
- fnmatch (11)
- fnmatch? (11)
- ftype (11)
- glob (29)
- hash (11)
- join (11)
- lchmod (11)
- lchown (11)
- mkdir (11)
- mlsd (18)
- mlst (9)
- open (22)
- opendir (22)
-
page
_ dir (11) -
parse
_ file (8) - path (11)
- read (11)
- readlines (11)
- readlink (11)
- realdirpath (22)
- realpath (33)
- relative? (11)
-
relative
_ path _ from (11) - rmdir (11)
- rmtree (11)
- root (11)
-
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 9 feature (11) - size (11)
- split (40)
- sysopen (11)
-
to
_ path (11) -
to
_ s (11) - unlink (11)
- utime (11)
-
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (11)
検索結果
先頭5件
-
Pathname
# binwrite(string , offset=nil) -> Integer (29600.0) -
IO.binwrite(self.to_s, *args)と同じです。
...
IO.binwrite(self.to_s, *args)と同じです。
@see IO.binwrite... -
Pathname
# children(with _ directory = true) -> [Pathname] (29547.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
# realdirpath(basedir = nil) -> Pathname (29547.0) -
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に 存在しなくてもエラーになりません。
...
Pathname#realpath とほぼ同じで、最後のコンポーネントは実際に
存在しなくてもエラーになりません。
@param basedir ベースディレクトリを指定します。省略するとカレントディレクトリになります。
//emlist[例][ruby]{
require "pathna......me"
path = Pathname("/not_exist")
path.realdirpath # => #<Pathname:/not_exist>
path.realpath # => Errno::ENOENT
# 最後ではないコンポーネント(/not_exist_1)も存在しないのでエラーになる。
path = Pathname("/not_exist_1/not_exist_2")
path.realdirpath # => Errno::ENOENT......//}
@see Pathname#realpath... -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (29547.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
# opendir -> Dir (29500.0) -
Dir.open(self.to_s, &block) と同じです。
...Dir.open(self.to_s, &block) と同じです。
@see Dir.open... -
Pathname
# entries -> [Pathname] (29489.0) -
self に含まれるファイルエントリ名を元にした Pathname オブジェクトの配列を返します。
...した Pathname オブジェクトの配列を返します。
@raise Errno::EXXX self が存在しないパスであったりディレクトリでなければ例外が発生します。
//emlist[例][ruby]{
require 'pathname'
require 'pp'
pp Pathname('/usr/local').entries
# => [#<Pathname:.>,
#......#<Pathname:..>,
# #<Pathname:bin>,
# #<Pathname:etc>,
# #<Pathname:include>,
# #<Pathname:lib>,
# #<Pathname:opt>,
# #<Pathname:sbin>,
# #<Pathname:share>,
# #<Pathname:var>]
//}
@see Dir.entries... -
Pathname
# binread(*args) -> String | nil (29436.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
# dirname -> Pathname (29435.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 (29417.0) -
Pathname.new(File.readlink(self.to_s)) と同じです。
...Pathname.new(File.readlink(self.to_s)) と同じです。
@see File.readlink... -
Pathname
# opendir {|dir| . . . } -> nil (29400.0) -
Dir.open(self.to_s, &block) と同じです。
...Dir.open(self.to_s, &block) と同じです。
@see Dir.open...