Im new to ruby and trying to learn by building a small app for mac osx.
So far I love it. However, one thing I want to do is to detect the
current user (of the app’s) system directory name ie -
/Users/johnsmith/… - johnsmith being what I want get.
One way I tried was to use a system call such as
system(“Users”)
but although this will output the current user in the console it will
not store the name as a variable because, as im sure you know, the
system call returns a boolean and not the result of the call.