How to define []=

Dear all,

We can define get method `[]’ as:

def
@ary[i]
end

But how do we define the set method `[]=’?

Thank you!