Hello,

On 04 ον 2011, at 2:50 μ.μ., Ilias Lazaridis wrote:

> 1.9
> 
> names = ["Jane", "Michele", "Isabella"]
> 
> # current behaviour
> names.each do |name|
>  print name
> end
> 
> #Question: How can I alter the behaviour of "each" in the following
> way:
> names.each do
>  print item         # "item" is used by default
> end
> 
> Is this possible, without going to C-level?
> 
> .
> 
> --
> http://lazaridis.com
> 

Can't you just write your own implementation of .each?

(along with every other method you found dislike the way it works)

best regards

--
Panagiotis Atmatzidis

email: ml / convalesco.org
blog: http://www.convalesco.org

The wise man said: "Never argue with an idiot. They bring you down to their level and beat you with experience."