Skip to content

Commit

Permalink
Add back a deprecated method (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Jan 18, 2022
1 parent c5bb622 commit 53f18bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/main/java/org/jruby/runtime/CallBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ public static Block newCallClosure(ThreadContext context, IRubyObject self, Sign
return new Block(body, binding);
}

// Put back because fishwife 1.10.1 still relies on this.
@Deprecated
public static Block newCallClosure(IRubyObject self, RubyModule imClass, Arity arity, BlockCallback callback, ThreadContext context) {
return newCallClosure(self, imClass, Signature.from(arity), callback, context);
}

private CallBlock(ThreadContext context, Signature signature, BlockCallback callback) {
super(signature);
this.callback = callback;
Expand Down

0 comments on commit 53f18bc

Please sign in to comment.