Fix Ruby source code formatting

Reformatted by RubyMine.