Skip to content

Commit

Permalink
[Truffle] Alias Hash#has_key? to Hash#key?.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Dec 16, 2014
1 parent 7ec773f commit 7a4ab54
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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;
Expand Down

0 comments on commit 7a4ab54

Please sign in to comment.