title: How to define a Class method like MyObject[:test]= 'test'
body: <p>This is what I want do create, but it doesnt work: </p>
  
  <pre><code>class MyObject
     def self.[]=(key, value)
       @@internal_hash[key] = value 
     end
  end
  </code></pre>
  
  <p>I don't understand why overriding the self dot bracket doesnt work.</p>