Ruby distribution has directory "ext" that contains varios extention
modules, like readline, etc, curses and others. In a corresponding directory
there usually is README (or something similar) file that describes the
module.

Gennady.

----- Original Message ----- 
From: "Mark J. Reed" <markjreed / mail.com>
Newsgroups: comp.lang.ruby
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Tuesday, August 26, 2003 10:48 AM
Subject: Readline history, and general binary module doc


> Where can I find documentation for standard library modules
> that are binaries rather than Ruby code?  For example,
> Ruby comes with readline support, but as far as I can tell
> no documentation.  And since it's a .so I can't easily just look
> at the source (although I can always unpack the Ruby source distribution
> and dig that way).  I didn't see anything about it in my copy of the
Pickaxe,
> either.
>
> Anyway, my specific question is this: how do I configure the readline
history?
> If I just do this:
>
> ruby -rreadline -e 'Readline.readline; Readline.readline'
>
> I have full editing capability on the input line, but no history;
> on the second one, I can't move up to the value I entered the
> first time.  But the same code executed in irb gives me access to
> the history (shared with the lines entered into irb itself).
>
> -Mark
>
>