ruby/README.md
[!TIP] Click on the linked pull request, commit, or the guideline itself to read more detailed explanations with examples and reasoning behind these recommendations.
one, two = 1, 2). #109boolean ? true : false). Use multi-line if
instead to emphasize code branches. 36491dbb9detect over find. 0d819844select over find_all. 0d819844map over collect. 0d819844reduce over inject. #237&:method_name to { |item| item.method_name } for simple method
calls. #183%() for single-line strings containing double-quotes that require
interpolation. 36491dbb9rake and
rspec, and add them to version control.# Validations). #63? suffix for predicate methods. 0d819844def self.method, not class << self. 40090e22def with parentheses when there are arguments. 36491dbb9private when indicating scope. Use protected only with comparison
methods like def ==(other), def <(other), and def >(other)._). #335user_factory creates
user)._factory (user_factory).Gemfile.Gemfile for gems that follow semantic
versioning, such as rspec, factory_bot, and capybara.Gemfile declarations for gems that are safe to update
often, such as pg, thin, and debugger.Gemfile for fragile gems, such as Rails.<PROJECT_NAME>.gemspec file.gemspec in the Gemfile.