5件ヒット
[1-5件を表示]
(0.117秒)
検索結果
先頭5件
-
Shell
# pwd -> String (45325.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall" -
Pathname
# expand _ path(default _ dir = & # 39; . & # 39;) -> Pathname (70.0) -
Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
Pathname.new(File.expand_path(self.to_s, *args)) と同じです。
@param default_dir self が相対パスであれば default_dir を基準に展開されます。
//emlist[例][ruby]{
require "pathname"
path = Pathname("testfile")
Pathname.pwd # => #<Pathname:/path/to>
path.expand_path # => #<Pathname:/path/to/testfile>
path.e... -
Shell
# cwd -> String (25.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall" -
Shell
# dir -> String (25.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall" -
Shell
# getwd -> String (25.0) -
カレントディレクトリのパスを文字列で返します。
カレントディレクトリのパスを文字列で返します。
使用例
require 'shell'
sh = Shell.new
p sh.cwd
# 例
#=> "/Users/kouya/tall"