Skip to content

Commit

Permalink
Add input= and output= so irb will run (stubbed out -- see JRUBY-3604)
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Apr 28, 2009
1 parent 2a9d066 commit 6abae9a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/org/jruby/ext/Readline.java
Expand Up @@ -54,6 +54,7 @@
import jline.FileNameCompletor;
import jline.CandidateListCompletionHandler;
import jline.History;
import org.jruby.CompatVersion;
import org.jruby.RubyIO;
import org.jruby.RubyNumeric;
import org.jruby.RubyString;
Expand Down Expand Up @@ -244,6 +245,18 @@ public static IRubyObject s_readline(ThreadContext context, IRubyObject recv, IR
return line;
}

@JRubyMethod(name = "input=", module = true, visibility = Visibility.PRIVATE, compat = CompatVersion.RUBY1_9)
public static IRubyObject setInput(ThreadContext context, IRubyObject recv, IRubyObject input) {
// FIXME: JRUBY-3604
return context.getRuntime().getNil();
}

@JRubyMethod(name = "output=", module = true, visibility = Visibility.PRIVATE, compat = CompatVersion.RUBY1_9)
public static IRubyObject setOutput(ThreadContext context, IRubyObject recv, IRubyObject output) {
// FIXME: JRUBY-3604
return context.getRuntime().getNil();
}

@JRubyMethod(name = "readline", module = true, visibility = Visibility.PRIVATE)
public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt) throws IOException {
return s_readline(recv, prompt, recv.getRuntime().getFalse());
Expand Down

0 comments on commit 6abae9a

Please sign in to comment.