Permalink
Browse files

[IR] Added toString for BuildLambda instructions.

  • Loading branch information...
1 parent 867bf7c commit 460db295a750b746f0e5ed706b31ec7c8958b5e1 @subbuss subbuss committed Mar 3, 2014
Showing with 5 additions and 0 deletions.
  1. +5 −0 core/src/main/java/org/jruby/ir/instructions/BuildLambdaInstr.java
@@ -88,4 +88,9 @@ public Object interpret(ThreadContext context, DynamicScope currDynScope, IRubyO
public void visit(IRVisitor visitor) {
visitor.BuildLambdaInstr(this);
}
+
+ @Override
+ public String toString() {
+ return "" + ((ResultInstr)this).getResult() + " = lambda(" + lambdaBody + ")";
+ }
}

0 comments on commit 460db29

Please sign in to comment.