Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

Ruby | Dir.getwd

概要

Dir.getwd

詳細

Dir.getwd はカレントディレクトリの絶対パスを文字列として返します。

サンプル

# encoding: utf-8
Dir.chdir "C:\\cygwin"
p Dir.getwd 

出力

"C:/cygwin"