Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > mysterious conf in irb

Reply
Thread Tools

mysterious conf in irb

 
 
Dave Rose
Guest
Posts: n/a
 
      07-31-2006
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



--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Eric Hodel
Guest
Posts: n/a
 
      07-31-2006
On Jul 31, 2006, at 12:57 PM, Dave Rose 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 Hodel - - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com



 
Reply With Quote
 
 
 
 
N Okia
Guest
Posts: n/a
 
      08-01-2006
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
undefined method `conf' for IRB:Module Reimundo Heluani Ruby 5 01-04-2010 06:29 PM
what's the purpose of IRB.conf[:CONTEXT_MODE] and/orTOPLEVEL_BINDING? ghorner Ruby 1 05-22-2009 06:17 PM
irb require ... where does irb look? what path? anne001 Ruby 1 06-27-2006 12:07 PM
irb question - variable definitions when calling irb from a script problem Nuralanur@aol.com Ruby 1 10-26-2005 09:13 PM
[ANN] irb-history 1.0.0: Persistent, shared Readline history for IRB Sam Stephenson Ruby 1 06-18-2005 08:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57