Config
is deprecated:
$ irb
001> Config
(irb):1: Use RbConfig instead of obsolete and deprecated Config.
=> RbConfig
You should do
002> RbConfig::CONFIG
=> { ... humongous hash ... }
Question
I am studying The Well Grounded Rubyist, in which I have an exercise to look at the installation directories and configuration of Ruby using the following options:
irb --simple-prompt -rrbconfig
>> Config::CONFIG["binddir"]
It seems to me that irb does not recognize Config::CONFIG as a constant.
I am using Ruby 1.9.3 on Windows 8.
How do I check the configuration data structure of Ruby?
La solution
Config
is deprecated:
$ irb
001> Config
(irb):1: Use RbConfig instead of obsolete and deprecated Config.
=> RbConfig
You should do
002> RbConfig::CONFIG
=> { ... humongous hash ... }