View difference between Paste ID: q0FmXVvW and 6e1ehu6P
SHOW: | | - or go back to the newest paste.
1-
if arrayOfAllObjects.count
1+
2.0.0p247 :001 > array = ["hello world"]
2-
		arrayOfAllObjects.map!{ |object| 
2+
 => ["hello world"] 
3-
			object.split(' ')[-1] #undefined method for Nil object :(
3+
2.0.0p247 :002 >  array.map!{ |entry| entry.split[-1] }
4-
		}
4+
 => ["world"] 
5-
end
5+
2.0.0p247 :003 > array
6
 => ["world"]