るりまサーチ (Ruby 2.4.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.060秒)
トップページ > バージョン:2.4.0[x] > 種類:特異メソッド[x] > クエリ:home[x] > クラス:Pathname[x]

別のキーワード

  1. dir home
  2. _builtin home
  3. gem set_home
  4. rubygems set_home
  5. installer gem_home

ライブラリ

キーワード

検索結果

Pathname.getwd -> Pathname (25.0)

カレントディレクトリを元に Pathname オブジェクトを生成します。 Pathname.new(Dir.getwd) と同じです。

...カレントディレクトリを元に Pathname オブジェクトを生成します。
Pathname
.new(Dir.getwd) と同じです。

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

Pathname
.getwd #=> #<Pathname:/home/zzak/projects/ruby>
//}

@see Dir.getwd...

Pathname.pwd -> Pathname (25.0)

カレントディレクトリを元に Pathname オブジェクトを生成します。 Pathname.new(Dir.getwd) と同じです。

...カレントディレクトリを元に Pathname オブジェクトを生成します。
Pathname
.new(Dir.getwd) と同じです。

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

Pathname
.getwd #=> #<Pathname:/home/zzak/projects/ruby>
//}

@see Dir.getwd...