Java has the convienient System.getProperty(\"user.home\") to get the user\'s \"home\" directory in a platform-independent way. What\'s the equivalent in Ruby? I
System.getProperty(\"user.home\")
This works on all operating systems
Dir.home
Dir.home('username')
Note: Username is case sensitive on Linux but not on Windows or macOS