add rubocop.yml
remove redundant begin
switch access modifiers to outdent, fix indentation.