enable do-block, brace-block generate
rubocop autofix
fix rubocop warnings
devide file
change variable name. minimize get_snippet method
extract method
minimize logic