Fix some coding style to ruby style