252件ヒット
[1-100件を表示]
(0.080秒)
クラス
- Pathname (252)
検索結果
先頭5件
-
Pathname
# file? -> bool (12226.0) -
FileTest.file?(self.to_s) と同じです。
...FileTest.file?(self.to_s) と同じです。
@see FileTest.#file?... -
Pathname
# each _ filename {|v| . . . } -> nil (12203.0) -
self のパス名要素毎にブロックを実行します。
...self のパス名要素毎にブロックを実行します。
//emlist[例][ruby]{
require 'pathname'
Pathname.new("/foo/../bar").each_filename {|v| p v}
# => "foo"
# ".."
# "bar"
//}... -
Pathname
# lstat -> File :: Stat (6226.0) -
File.lstat(self.to_s) と同じです。
...File.lstat(self.to_s) と同じです。
@see File.lstat... -
Pathname
# lchmod(mode) -> Integer (6125.0) -
File.lchmod(mode, self.to_s) と同じです。
...File.lchmod(mode, self.to_s) と同じです。
@param mode ファイルのアクセス権限を整数で指定します。
@see File.lchmod... -
Pathname
# lchown(owner , group) -> Integer (6125.0) -
File.lchown(owner, group, self.to_s) と同じです。
...File.lchown(owner, group, self.to_s) と同じです。
@param owner オーナーを指定します。
@param group グループを指定します。
@see File.lchown... -
Pathname
# make _ link(old) -> 0 (6125.0) -
File.link(old, self.to_s) と同じです。
...File.link(old, self.to_s) と同じです。
@see File.link... -
Pathname
# make _ symlink(old) -> 0 (6125.0) -
File.symlink(old, self.to_s) と同じです。
...File.symlink(old, self.to_s) と同じです。
@see File.symlink... -
Pathname
# readlink -> Pathname (6125.0) -
Pathname.new(File.readlink(self.to_s)) と同じです。
...Pathname.new(File.readlink(self.to_s)) と同じです。
@see File.readlink... -
Pathname
# split -> Array (6125.0) -
File.split(self.to_s) と同じです。
...File.split(self.to_s) と同じです。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.split # => [#<Pathname:/path/to>, #<Pathname:sample>]
//}
@see File.split...