So google for a solution to this problem and found myself here:
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)
end
end
Hope it helps