title: Is it possible to instantiate a Ruby class without calling initialize?
body: <p>Some times when I write unit tests I need to instantiate a class without the <code>initialize</code> method being invoked. For instance when the constructor instantiates other classes that I will replace with stubs anyway. For instance:</p>
  
  <pre><code>class SomeClassThatIWillTest
    def initialize
      @client = GoogleAnalyticsClient.new
      @cache = SuperAdvancedCacheSystem.new
    end
  
    # ...
  end
  </code></pre>
  
  <p>In a test I will probably replace both <code>@client</code> and <code>@cache</code> with stubs, so I'd rather the constructor was never invoked. Is there any black magic that can help me out with that?</p>