Use the braces for array literals
[] for array literals (%w, %i, %W, %I) as it is aligned with the standard array literals. https://github.com/rubocop-hq/ruby-style-guide#percent-literal-braces
Showing
Please register or sign in to comment