Skip to content

Complex comparisons work differently in Ruby 2.7 #213

@olbrich

Description

@olbrich

Prior to Ruby 2.7, the Complex class did not implement a :<=> method, which requires some special handling. This was changed in 2.7.
See https://bugs.ruby-lang.org/issues/15857 and https://rubyreferences.github.io/rubychanges/2.7.html#complex

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions