Skip to content

Commit

Permalink
Merge pull request #1 from enebo/invoke_super
Browse files Browse the repository at this point in the history
invoke super
  • Loading branch information
enebo committed Sep 7, 2021
2 parents 6bdaa1f + c341ce8 commit ae889fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyRange.java
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ public IRubyObject count(ThreadContext context, Block block) {

@JRubyMethod
public IRubyObject minmax(ThreadContext context, Block block) {
if (block.isGiven()) return RubyEnumerable.minmax(context, this, block);
if (block.isGiven()) return Helpers.invokeSuper(context, this, block);

return RubyArray.newArray(context.runtime, callMethod("min"), callMethod("max"));
}
Expand Down

0 comments on commit ae889fe

Please sign in to comment.