Skip to content
Permalink
Browse files
[Truffle] Alias Hash#has_key? to Hash#key?.
  • Loading branch information
nirvdrum committed Dec 16, 2014
1 parent 7ec773f commit 7a4ab54b7210013052fc4270724ad6e7c5fff131
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/org/jruby/truffle/nodes/core/HashNodes.java
@@ -755,7 +755,7 @@ public RubyString inspectObjectLinkedHashMap(VirtualFrame frame, RubyHash hash)

}

@CoreMethod(names = "key?", required = 1)
@CoreMethod(names = { "has_key?", "key?" }, required = 1)
public abstract static class KeyNode extends HashCoreMethodNode {

@Child protected PredicateDispatchHeadNode eqlNode;

0 comments on commit 7a4ab54

Please sign in to comment.