From: "Marcin Mielżyński" Date: 2006-07-14T07:45:07+09:00 Subject: Re: challenge ara.t.howard@noaa.gov wrote: > wow. learn something every day! > > ~ > cat a.rb > class File > def File.open(*a) 42 end > end > > p File.open(__FILE__) > > class << File; self; end.class_eval do > remove_method :open > end > > p File.open(__FILE__) > > > > ~ > ruby a.rb > 42 > # > > > i wasn't aware remove_method had this 'stacklike' quality. > The open method is in fact defined in IO class which is extended by File class. In your case another method for File eigenclass class was defined lopex