title: Automatically freezing objects after initialization
body: <p>I'm tired of adding <code>freeze</code> at the end of method <code>initialize</code> of my classes all the time like this:</p>
  
  <pre><code>class Foo
    def initialize
      # some stuff
      freeze
    end
  end
  </code></pre>
  
  <p>I would like to do this by default for any object. I thought of overriding <code>BasicObject#initialize</code> inside <code>Object</code> class, which provides method <code>freeze</code>, but I don't see how.</p>