org.jruby.ext
Class Readline

java.lang.Object
  extended by org.jruby.ext.Readline

public class Readline
extends java.lang.Object

Author:
Ola Bini, Damian Steer

Nested Class Summary
static class Readline.ConsoleHolder
           
static class Readline.HistoryMethods
           
static class Readline.ProcCompletor
           
static class Readline.RubyFileNameCompletor
           
static class Readline.Service
           
 
Constructor Summary
Readline()
           
 
Method Summary
static void createReadline(Ruby runtime)
           
static Completor getCompletor(Readline.ConsoleHolder holder)
           
static History getHistory(Readline.ConsoleHolder holder)
           
static Readline.ConsoleHolder getHolder(Ruby runtime)
           
protected static void initReadline(Ruby runtime, Readline.ConsoleHolder holder)
           
static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist)
           
static IRubyObject s_set_completion_append_character(IRubyObject recv, IRubyObject achar)
           
static IRubyObject s_set_completion_proc(IRubyObject recv, IRubyObject proc)
           
static void setCompletor(Readline.ConsoleHolder holder, Completor completor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Readline

public Readline()
Method Detail

createReadline

public static void createReadline(Ruby runtime)
                           throws java.io.IOException
Throws:
java.io.IOException

initReadline

protected static void initReadline(Ruby runtime,
                                   Readline.ConsoleHolder holder)
                            throws java.io.IOException
Throws:
java.io.IOException

getHistory

public static History getHistory(Readline.ConsoleHolder holder)

getHolder

public static Readline.ConsoleHolder getHolder(Ruby runtime)

setCompletor

public static void setCompletor(Readline.ConsoleHolder holder,
                                Completor completor)

getCompletor

public static Completor getCompletor(Readline.ConsoleHolder holder)

s_readline

public static IRubyObject s_readline(IRubyObject recv,
                                     IRubyObject prompt,
                                     IRubyObject add_to_hist)
                              throws java.io.IOException
Throws:
java.io.IOException

s_set_completion_append_character

public static IRubyObject s_set_completion_append_character(IRubyObject recv,
                                                            IRubyObject achar)
                                                     throws java.lang.Exception
Throws:
java.lang.Exception

s_set_completion_proc

public static IRubyObject s_set_completion_proc(IRubyObject recv,
                                                IRubyObject proc)
                                         throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2002-2007 JRuby Team. All Rights Reserved.