ary.each { |item| block } â ary
ary.each â Enumerator
ary.each â Enumerator
Instance Public methods
Calls the given block once for each element in self
, passing
that element as a parameter.
An Enumerator is returned if no block is given.
a = [ "a", "b", "c" ] a.each {|x| print x, " -- " }
produces:
a -- b -- c --
Please login to continue.