るりまサーチ

最速Rubyリファレンスマニュアル検索!
374件ヒット [301-374件を表示] (0.131秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:p[x] > クエリ:g[x] > クラス:Pathname[x]

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. dh p
  5. rsa p

ライブラリ

キーワード

検索結果

<< < ... 2 3 4 >>

Pathname#read(*args) -> String | nil (3102.0)

IO.read(self.to_s, *args)と同じです。

...IO.read(self.to_s, *args)と同じです。


@see IO.read...

Pathname#readlines(*args) -> [String] (3102.0)

IO.readlines(self.to_s, *args)と同じです。

...IO.readlines(self.to_s, *args)と同じです。


@see IO.readlines...

Pathname#size -> Integer (3102.0)

FileTest.size(self.to_s) と同じです。

FileTest.size(self.to_s) と同じです。


@see FileTest.#size

Pathname#to_s -> String (3102.0)

パス名を文字列で返します。

...パス名を文字列で返します。


//emlist[例][ruby]{
require 'pathname'

p
ath = Pathname.new("/tmp/hogehoge")
File.open(path)
//}...

Pathname#truncate(length) -> 0 (3102.0)

File.truncate(self.to_s, length) と同じです。

...File.truncate(self.to_s, length) と同じです。


@param length 変更したいサイズを整数で与えます。

@see File.truncate...

絞り込み条件を変える

Pathname#unlink -> Integer (3102.0)

self が指すディレクトリあるいはファイルを削除します。

...self が指すディレクトリあるいはファイルを削除します。

//emlist[例][ruby]{
require "pathname"

pathname
= Pathname("/path/to/sample")
pathname
.exist? # => true
pathname
.unlink # => 1
pathname
.exist? # => false
//}...

Pathname#utime(atime, mtime) -> Integer (3102.0)

File.utime(atime, mtime, self.to_s) と同じです。

...File.utime(atime, mtime, self.to_s) と同じです。

@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。

@param mtime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。


@see File.utime...
<< < ... 2 3 4 >>