Mysterious conf in irb

when you run irb and type:

require ‘config’
conf

a huge amount of information prints out on the screen (at least on the
windows 1.8.2 one-click installer irb)
what kind of container is it where does it come from etc…
i did a conf.class and got an IRB::context what kind of class is that?
.i did a
f=File.new(‘config.txt’,‘w’)
f.write(config) to get a text file of its contents but don’t know about
it’s contents

You’ve found the irb configuration class. You can configure a number
of features of irb with this. You can also read about it in the
Pickaxe Book, where it is documented pretty thoroughly.

On Jul 31, 2006, at 12:57 PM, Dave R. wrote:

when you run irb and type:

require ‘config’
conf

a huge amount of information prints out on the screen (at least on the
windows 1.8.2 one-click installer irb)
what kind of container is it where does it come from etc…

Its irb’s configuration.

i did a conf.class and got an IRB::context what kind of class is that?

Its a configuration for irb.

i did a
f=File.new(‘config.txt’,‘w’)
f.write(config) to get a text file of its contents but don’t know
about
it’s contents

What are you trying to accomplish?


Eric H. - [email protected] - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs