Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d69dc0984f41
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 804fe00704e8
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 4, 2018

  1. Add Method#=== that invokes #call

    For more information, please see feature #14142.
    nomadium committed Mar 4, 2018
    Copy the full SHA
    d54139a View commit details

Commits on Mar 20, 2018

  1. Merge pull request #5079 from nomadium/add-method-eqq

    Add Method#=== that invokes #call
    kares authored Mar 20, 2018
    Copy the full SHA
    804fe00 View commit details
Showing with 6 additions and 0 deletions.
  1. +6 −0 core/src/main/java/org/jruby/RubyMethod.java
6 changes: 6 additions & 0 deletions core/src/main/java/org/jruby/RubyMethod.java
Original file line number Diff line number Diff line change
@@ -155,6 +155,12 @@ public RubyBoolean op_equal(ThreadContext context, IRubyObject other) {
return context.runtime.newBoolean( equals(other) );
}

@Override
@JRubyMethod(name = "===", required = 1)
public IRubyObject op_eqq(ThreadContext context, IRubyObject other) {
return method.call(context, receiver, implementationModule, methodName, other, Block.NULL_BLOCK);
}

@Override
public boolean equals(Object other) {
if (!(other instanceof RubyMethod)) {