Dear all,
We can define get method `[]' as:
def [](i)
@ary[i]
end
But how do we define the set method `[]='?
Thank you!
···
--
Posted via http://www.ruby-forum.com/.
Dear all,
We can define get method `[]' as:
def [](i)
@ary[i]
end
But how do we define the set method `[]='?
Thank you!
--
Posted via http://www.ruby-forum.com/.