Project

General

Profile

Bug #12594

Updated by faucct (Nikita Sokolov) about 4 years ago

Reproduced in ruby 2.3.0 and 2.3.1 
 You can see that the result changes if I swap places `LimitedPeriod.include Period` and `Period.include Serialization`. 

 ~~~ ruby 
 module Serialization 
 end 

 module Period 
 end 

 Period.include Serialization 

 class LimitedPeriod 
   include Period 
 end 

 LimitedPeriod < Serialization 
 # => true 
 ~~~ 

 ~~~ ruby 
 module Serialization 
 end 

 module Period 
 end 

 Period.include Serialization 

 class LimitedPeriod 
   include Period 
 end 

 Period.include Serialization 

 LimitedPeriod < Serialization 
 # => false true 
 ~~~ 
 

Back