Remove whitespace on newline, public private keywords in ruby