Updated methods and other ruby files

parsed ruby files with rubocop