Re: How to get special directories?


You can get it using ENV. Try this in irb:
ENV #hash with many info
Home folder: ENV[“HOME”] #only path to home folder

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs