ruby에서 현재 디렉토리를 얻으려면, Dir 클래스를 사용하면 된다.
spec_path = Dir.pwd + "/spec"
puts spec_path
'Ruby' 카테고리의 다른 글
| [ruby] 타입(type) 알기 (0) | 2016.08.17 |
|---|---|
| [ruby] thrift gem 이슈 - shifting a negative signed value is undefined [-Werror,-Wshift-negative-value] (0) | 2016.08.17 |
| [ruby] enumeration의 inject (0) | 2016.08.12 |
| [ruby] bundle에서 모듈설치시 You have to install development tools first. 에러 해결하기 (0) | 2016.01.13 |
| [ruby] Errno::EACCES: Permission denied (0) | 2016.01.13 |


