Haha sorry for stating the obvious ( been a long day at work )
For me the code partially makes sense although i don't fully understand why to have the value to an array ( r.to_a )