Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyArgsFile.java
Original file line number Diff line number Diff line change
@@ -240,7 +240,7 @@ public static void setCurrentLineNumber(IRubyObject recv, int newLineNumber) {

@JRubyMethod(name = "argv")
public static IRubyObject argv(ThreadContext context, IRubyObject recv) {
return getData(context, recv, "no stream").argv;
return ArgsFileData.getDataFrom(recv).argv;
}

@JRubyMethod(name = {"fileno", "to_i"})

0 comments on commit c28b86d

Please sign in to comment.