Skip to content

Commit

Permalink
fixes JRUBY-4800: Digest::Class.digest should accept a variable numbe…
Browse files Browse the repository at this point in the history
…r of arguments
  • Loading branch information
calavera committed Jan 16, 2011
1 parent b8cfd2b commit e56e8bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jruby/RubyDigest.java
Expand Up @@ -359,7 +359,7 @@ public DigestClass(Ruby runtime, RubyClass type) {
super(runtime, type);
}

@JRubyMethod(name = "digest", required = 1, optional = 1, frame = true, meta = true)
@JRubyMethod(name = "digest", required = 1, rest = true, frame = true, meta = true)
public static IRubyObject s_digest(ThreadContext ctx, IRubyObject recv, IRubyObject[] args, Block unusedBlock) {
Ruby runtime = recv.getRuntime();
if (args.length < 1) {
Expand Down

0 comments on commit e56e8bc

Please sign in to comment.