Ruby
[ruby] ruby에서 현재 디렉토리 얻기
'김용환'
2016. 8. 16. 20:56
ruby에서 현재 디렉토리를 얻으려면, Dir 클래스를 사용하면 된다.
spec_path = Dir.pwd + "/spec"
puts spec_path