how to monkeypatch Hash's []= method, revisted

So google for a solution to this problem and found myself here:'s+[]%3D+method+#58b80fe0d4eadb1a

But while reading, and admittedly not quite getting the solution, I
had a bright moment to balance out the stupid moment, realising that []
= already has an alias to which you can delegate:

class Hash
  def []= key, value
    store processKey(key), processValue(value)

Hope it helps