6件ヒット
[1-6件を表示]
(0.027秒)
種類
- インスタンスメソッド (4)
- 特異メソッド (2)
検索結果
先頭5件
-
Pathname
. getwd -> Pathname (54436.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 -
Shell
# getwd -> String (45322.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall" -
Pathname
. pwd -> Pathname (9136.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 -
Shell
# cwd -> String (22.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall" -
Shell
# dir -> String (22.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall" -
Shell
# pwd -> String (22.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"