I found some of the Etc functions missing which are mentioned in
Matsumoto’s book “Ruby in a nutshell”, for example Etc.dir and
Etc.shell. OTOH, Etc.name exists (for example):
NoMethodError: undefined method
dir' for Etc:Module from (irb):2 irb(main):003:0> Etc.name => "Etc" irb(main):004:0> Etc.shell NoMethodError: undefined methodshell’ for Etc:Module
I’m running the following Ruby version:
$ irb --version
$ ruby --version
ruby 1.8.4 (2005-12-24) [i686-linux]
As the book was published 2001, it can’t be that I just have an
outdated Ruby version.
What am I doing wrong here?