A few solutions in ruby

Let me know if you want me to add comments. I think these are pretty straightforward.