156件ヒット
[1-100件を表示]
(0.017秒)
クラス
- Pathname (156)
検索結果
先頭5件
-
Pathname
# binwrite(string , offset=nil) -> Integer (6202.0) -
IO.binwrite(self.to_s, *args)と同じです。
...IO.binwrite(self.to_s, *args)と同じです。
@see IO.binwrite... -
Pathname
# write(string , offset=nil , **opts) -> Integer (6202.0) -
...IO.write(self.to_s, string, offset, **opts)と同じです。
@see IO.write... -
Pathname
# entries -> [Pathname] (6102.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
# world _ writable? -> bool (6102.0) -
FileTest.world_writable?(self.to_s) と同じです。
...FileTest.world_writable?(self.to_s) と同じです。
@see FileTest.#world_writable?... -
Pathname
# writable? -> bool (6102.0) -
FileTest.writable?(self.to_s) と同じです。
...FileTest.writable?(self.to_s) と同じです。
@see FileTest.#writable?... -
Pathname
# writable _ real? -> bool (6102.0) -
FileTest.writable_real?(self.to_s) と同じです。
...FileTest.writable_real?(self.to_s) と同じです。
@see FileTest.#writable_real?... -
Pathname
# binread(*args) -> String | nil (102.0) -
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(20, 10) # => "ne one\nThis is lin... -
Pathname
# extname -> String (102.0) -
File.extname(self.to_s) と同じです。
File.extname(self.to_s) と同じです。
@see File.extname -
Pathname
# ftype -> String (102.0) -
File.ftype(self.to_s) と同じです。
File.ftype(self.to_s) と同じです。
@see File.ftype