Skip to content

Commit

Permalink
Temporarily ignore a hash argument to File.read since we don't have t…
Browse files Browse the repository at this point in the history
…hat 1.9 feature yet.
  • Loading branch information
headius committed May 21, 2009
1 parent 59b38de commit 07e2f8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/org/jruby/RubyIO.java
Expand Up @@ -3056,7 +3056,12 @@ public static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObj

try {
if (!arg1.isNil()) {
return file.read(context, arg1);
if (arg1 instanceof RubyInteger) {
return file.read(context, arg1);
} else {
// TODO: hash args for encoding, etc, are not yet supported; ignore
return file.read(context);
}
} else {
return file.read(context);
}
Expand Down

0 comments on commit 07e2f8b

Please sign in to comment.