Skip to content

Commit

Permalink
[Truffle] Restored alias from Kernel#inspect to Kernel#to_s.
Browse files Browse the repository at this point in the history
This is done solely for bootstrapping purposes.  We override the method with a correct implementation in Ruby.
  • Loading branch information
nirvdrum committed Feb 5, 2015
1 parent e0a9a31 commit 5347d68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,7 @@ public String toHexString(RubyBignum value) {

}

@CoreMethod(names = "to_s")
@CoreMethod(names = { "to_s", "inspect" })
public abstract static class ToSNode extends CoreMethodNode {

@Child private ClassNode classNode;
Expand Down

0 comments on commit 5347d68

Please sign in to comment.