Improve ruby format function

Use a simplest way to indent all file. :)