Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a one-liner newIO method to return an IO instance from a given ru…

…ntime and channel.

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@7219 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
commit e594dcc19b52527cbe30f87da062a57d85a2c500 1 parent aa01de2
@headius headius authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/org/jruby/RubyIO.java
View
4 src/org/jruby/RubyIO.java
@@ -288,6 +288,10 @@ public RubyIO(Ruby runtime, STDIO stdio) {
registerDescriptor(openFile.getMainStream().getDescriptor());
}
+ public static RubyIO newIO(Ruby runtime, Channel channel) {
+ return new RubyIO(runtime, channel);
+ }
+
public OpenFile getOpenFile() {
return openFile;
}
Please sign in to comment.
Something went wrong with that request. Please try again.