What Does This Code Do In Ruby