Skip to content

Commit

Permalink
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/src/main/java/org/jruby/runtime/CallSite.java
Original file line number Diff line number Diff line change
@@ -324,4 +324,14 @@ public CallSite(String methodName, CallType callType) {
* @return the result of the call
*/
public abstract IRubyObject callVarargsIter(ThreadContext context, IRubyObject caller, IRubyObject self, IRubyObject[] args, Block block);

/**
* Produce a string representation of this CallSite, for informational purposes. Subclasses can override this to
* provide more information.
*
* @return an informational string representation of this CallSite
*/
public String toString() {
return "CallSite(\"" + methodName + "\"," + callType + ")";
}
}

0 comments on commit 46782c4

Please sign in to comment.