Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Etc.dir, Etc.name
Ronald Fischer
10/20/2006 7:44:00 AM
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):
irb(main):002:0> Etc.dir
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 method `shell' for Etc:Module
from (irb):4
from :0
I'm running the following Ruby version:
$ irb --version
irb 0.9.5(05/04/13)
$ 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?
Ronald
--
Ronald Fischer <ronaldf@eml.cc>
Posted via
http://www.news...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Etc.dir, Etc.name
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password