Amir Ebrahimifard wrote:
> Hi
> What can I do to can apply some change to an array for always ? ( I want
> to use iterator and each method and apply some change in an array )

if I understood the question:

array.collect! {|item| block } вк array
array.map! {|item| block } вк array

Invokes the block once for each element of self, replacing the element 
with the value returned by block. See also Enumerable#collect.

   a = [ "a", "b", "c", "d" ]
   a.collect! {|x| x + "!" }
   a             #=>  [ "a!", "b!", "c!", "d!" ]

-- 
Posted via http://www.ruby-forum.com/.