So while practicing Ruby, I decided to translate my previously posted Java code that prints out the numbers of the specified row from Pascal’s Triangle, into Ruby. This was easy, but the whole point was to then refactor it to make use of all the neat little Ruby tricks that the language has. After some examining and help from someone in the #ruby channel in freenode, I came up with this. It is a lot easier to read and shorter. I was told that in Ruby it could be done iteratively and would be better, but like I said, my goal was to implement all the neat Ruby tricks, not enhance the algorithm. Here it is: