Skip to content

Commit

Permalink
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -499,6 +499,15 @@ public IRubyObject getbyte() {
return getc();
}

@JRubyMethod(name = "readbyte", compat = RUBY1_9)
public IRubyObject readbyte() {
IRubyObject dst = getbyte();
if (dst.isNil()) {
throw getRuntime().newEOFError();
}
return dst;
}

@JRubyMethod(name = "getc", compat = RUBY1_9)
public IRubyObject getc_19() {
try {

0 comments on commit 0745433

Please sign in to comment.