Project

General

Profile

This project is closed and read-only.

Actions

Backport #8357

closed

Module#prepend breaks comparison operator

Backport #8357: Module#prepend breaks comparison operator

Added by skwosh (Alex Goldsmith) over 13 years ago. Updated over 13 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: PDF Atom