| ▲ | cortesoft 2 days ago | |
It doesn’t matter which one you do, the methods are literally identical other than the extra s. You can’t pick the wrong one. This sort of choice is very common in Ruby, you can have different style choices for the same functionality. You can have blocks made with {} or do and end. You can do conditionals in the form of “a if b” or “if b then a”. You can call methods with or without parentheses. These are all Ruby style choices, and we already have a way to enforce a particular style for a particular project with formatters like rubocop. | ||