add all chapter 01's ruby version code based on python's

I added ruby version for chapter 01 based on python's version.