From: Brian Candler Date: 2010-08-17T23:36:38+09:00 Subject: Re: Have I been staring at the screen too long? Iain Barnett wrote: > So why did it produce two different outputs even though my patch didn't > add a rand I've no idea, because you haven't shown the source of your "local_methods" method, nor the exact sequence of operations to get to that point. If you were in a single irb session, and did load 'extensions/Array.rb' after changing Array.rb, then any methods added to Array by the old version will still be present in Array, even if the new Array.rb doesn't define them. > and why doesn't my patch even seem to work anymore? "Doesn't work" is not a helpful description of an error. Post your current code (preferably boiled down to the smallest runnable example which replicates it). Show exactly what you type, exactly what you see - results and/or error message - and what you were expecting to see. -- Posted via http://www.ruby-forum.com/.