modified coding style according Ruby coding style guideline

https://github.com/styleguide/ruby