mysterious conf in irb

Discussion in 'Ruby' started by Dave Rose, Jul 31, 2006.

  1. Dave Rose

    Dave Rose Guest

    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/.
    Dave Rose, Jul 31, 2006
    #1
    1. Advertising

  2. Dave Rose

    Eric Hodel Guest

    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
    Eric Hodel, Aug 1, 2006
    #2
    1. Advertising

  3. Dave Rose

    N Okia Guest

    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.
    N Okia, Aug 1, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sam Stephenson
    Replies:
    1
    Views:
    217
    Andrew Walrond
    Jun 18, 2005
  2. Replies:
    1
    Views:
    151
    Florian GroƟ
    Oct 26, 2005
  3. anne001
    Replies:
    1
    Views:
    257
    anne001
    Jun 27, 2006
  4. ghorner
    Replies:
    1
    Views:
    86
    cldwalker
    May 22, 2009
  5. Reimundo Heluani

    undefined method `conf' for IRB:Module

    Reimundo Heluani, Jan 4, 2010, in forum: Ruby
    Replies:
    5
    Views:
    146
    Phillip Gawlowski
    Jan 4, 2010
Loading...

Share This Page