889件ヒット
[801-889件を表示]
(0.151秒)
ライブラリ
- pathname (889)
キーワード
- <=> (12)
- == (12)
- === (12)
- absolute? (12)
- ascend (12)
- binread (12)
- binwrite (12)
- blockdev? (12)
- chardev? (12)
- children (12)
- cleanpath (12)
- delete (12)
- descend (12)
- directory? (12)
-
each
_ child (24) -
each
_ entry (12) -
each
_ filename (12) -
each
_ line (24) - empty? (9)
- eql? (12)
- executable? (12)
-
executable
_ real? (12) - exist? (12)
- file? (12)
- find (12)
- fnmatch (12)
- fnmatch? (12)
- glob (16)
- grpowned? (12)
- lchmod (12)
- lchown (12)
- lstat (12)
-
make
_ link (12) -
make
_ symlink (12) - mkpath (12)
- mountpoint? (12)
- open (24)
- opendir (12)
- owned? (12)
- pipe? (12)
- read (12)
- readable? (12)
-
readable
_ real? (12) - readlines (12)
- readlink (12)
- realdirpath (12)
- realpath (24)
- relative? (12)
-
relative
_ path _ from (12) - rmtree (12)
- root? (12)
- setgid? (12)
- setuid? (12)
- size? (12)
- socket? (12)
- split (12)
- stat (12)
- sticky? (12)
- sub (12)
-
sub
_ ext (12) - symlink? (12)
- truncate (12)
- unlink (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - write (12)
- zero? (12)
検索結果
先頭5件
-
Pathname
# socket? -> bool (102.0) -
FileTest.socket?(self.to_s) と同じです。
...FileTest.socket?(self.to_s) と同じです。
@see FileTest.#socket?... -
Pathname
# stat -> File :: Stat (102.0) -
File.stat(self.to_s) と同じです。
...File.stat(self.to_s) と同じです。
@see File.stat... -
Pathname
# sticky? -> bool (102.0) -
FileTest.sticky?(self.to_s) と同じです。
...FileTest.sticky?(self.to_s) と同じです。
@see FileTest.#sticky?... -
Pathname
# sub(pattern , replace) -> Pathname (102.0) -
self を表現するパス文字列に対して sub メソッドを呼び出し、その結果を内 容とする新しい Pathname オブジェクトを生成し、返します。
...self を表現するパス文字列に対して sub メソッドを呼び出し、その結果を内
容とする新しい Pathname オブジェクトを生成し、返します。
@param pattern 置き換える文字列のパターンを指定します。
@param replace pattern で指定した......文字列と置き換える文字列を指定します。
//emlist[例][ruby]{
require 'pathname'
path1 = Pathname('/usr/bin/perl')
path1.sub('perl', 'ruby') #=> #<Pathname:/usr/bin/ruby>
//}
@see String#sub... -
Pathname
# sub _ ext(replace) -> Pathname (102.0) -
拡張子を与えられた文字列で置き換えた Pathname オブジェクトを返します。
...置き換えた Pathname オブジェクトを返します。
自身が拡張子を持たない場合は、与えられた文字列を拡張子として付加します。
@param replace 拡張子を文字列で指定します。
//emlist[例][ruby]{
require "pathname"
Pathname('/usr/bin/shutdown......') # => #<Pathname:/usr/bin/shutdown.rb>
Pathname('/home/user/test.txt').sub_ext('.pdf') # => #<Pathname:/home/user/test.pdf>
Pathname('/home/user/test').sub_ext('.pdf') # => #<Pathname:/home/user/test.pdf>
Pathname('/home/user/test.').sub_ext('.pdf') # => #<Pathname:/home/user/tes......t..pdf>
Pathname('/home/user/.test').sub_ext('.pdf') # => #<Pathname:/home/user/.test.pdf>
Pathname('/home/user/test.tar.gz').sub_ext('.xz') # => #<Pathname:/home/user/test.tar.xz>
//}... -
Pathname
# truncate(length) -> 0 (102.0) -
File.truncate(self.to_s, length) と同じです。
...File.truncate(self.to_s, length) と同じです。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Pathname
# write(string , offset=nil , **opts) -> Integer (102.0) -
...IO.write(self.to_s, string, offset, **opts)と同じです。
@see IO.write... -
Pathname
# zero? -> bool (102.0) -
FileTest.zero?(self.to_s) と同じです。
...FileTest.zero?(self.to_s) と同じです。
@see FileTest.#zero?......FileTest.zero?(self.to_s) と同じです。
@see FileTest.#zero?
, Pathname#empty?...