chapter 2 ruby solutions

These are the solutions for 2.1, 2.3, 2.4, 2.6 in Ruby. Everything was TDDed.