るりまサーチ

最速Rubyリファレンスマニュアル検索!
1332件ヒット [101-200件を表示] (0.169秒)

別のキーワード

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

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 3 4 ... > >>

Pathname#mkpath -> nil (30101.0)

FileUtils.mkpath(self.to_s) と同じです。

...FileUtils.mkpath(self.to_s) と同じです。


@see FileUtils.#mkpath...

Pathname#open(mode = &#39;r&#39;, perm = 0666) -> File (27201.0)

File.open(self.to_s, *args, &block) と同じです。

...File.open(self.to_s, *args, &block) と同じです。


@see File.open...

Pathname#open(mode = &#39;r&#39;, perm = 0666) {|file| ... } -> object (27201.0)

File.open(self.to_s, *args, &block) と同じです。

...File.open(self.to_s, *args, &block) と同じです。


@see File.open...

Pathname#empty? -> bool (27143.0)

ディレクトリに対しては Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。

...ては Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。

//emlist[例 ディレクトリの場合][ruby]{
require "pathname"
require 'tmpdir'

Pathname
("/usr/local").empty? # => false
Dir.mktmpdir { |dir| Pathname(dir).empty? } # => tru...
...e
//}

//emlist[例 ファイルの場合][ruby]{
require "pathname"
require 'tempfile'

Pathname
("testfile").empty? # => false
Tempfile.create("tmp") { |tmp| Pathname(tmp).empty? } # => true
//}

@see Dir.empty?, FileTest.#empty?, Pathname#zero?...

Pathname#split -> Array (27137.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...

絞り込み条件を変える

Pathname#mountpoint? -> bool (27119.0)

self がマウントポイントであれば真を返します。

...self がマウントポイントであれば真を返します。

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

p
ath = Pathname("/")
p
ath.mountpoint? # => true
p
ath = Pathname("/usr")
p
ath.mountpoint? # => false
//}...

Pathname#ftype -> String (27101.0)

File.ftype(self.to_s) と同じです。

...File.ftype(self.to_s) と同じです。


@see File.ftype...

Pathname#grpowned? -> bool (27101.0)

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

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


@see FileTest.#grpowned?...

Pathname#opendir -> Dir (27101.0)

Dir.open(self.to_s, &block) と同じです。

...Dir.open(self.to_s, &block) と同じです。


@see Dir.open...
<< < 1 2 3 4 ... > >>