Project

General

Profile

Actions

Backport #8357

closed

Module#prepend breaks comparison operator

Added by skwosh (Alex Goldsmith) almost 11 years ago. Updated almost 11 years ago.


Description

Array < Enumerable # => true
Enumerable.send :prepend, Module.new
Array < Enumerable # => nil
Array.ancestors.include? Enumerable # => true

Same thing happens in 2.0.0-p0.

Possibly similar to what's happening in: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/53106

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0