# File lib/mocha/class_method.rb, line 28 28: def hide_original_method 29: if method_exists?(method) 30: begin 31: stubbee.__metaclass__.class_eval("alias_method :#{hidden_method}, :#{method}", __FILE__, __LINE__) 32: rescue NameError 33: # deal with nasties like ActiveRecord::Associations::AssociationProxy 34: end 35: end 36: end