Skip to content

Commit

Permalink
Alias Set#=== to include?
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBr committed Jan 9, 2018
1 parent 2f7d4ff commit 2799bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/ext/set/RubySet.java
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public IRubyObject flatten_bang(final ThreadContext context) {
/**
* Returns true if the set contains the given object.
*/
@JRubyMethod(name = "include?", alias = { "member?" })
@JRubyMethod(name = "include?", alias = { "member?", "===" })
public RubyBoolean include_p(final ThreadContext context, IRubyObject obj) {
return context.runtime.newBoolean( containsImpl(obj) );
}
Expand Down Expand Up @@ -1261,4 +1261,4 @@ final IRubyObject toRuby(Object obj) {
return JavaUtil.convertJavaToUsableRubyObject(getRuntime(), obj);
}

}
}

0 comments on commit 2799bfe

Please sign in to comment.