diff --git a/STYLEGUIDE.md b/STYLEGUIDE.md index 6cb942d1..d574a5a3 100644 --- a/STYLEGUIDE.md +++ b/STYLEGUIDE.md @@ -252,22 +252,6 @@ class SomeClass end ``` -* Avoid explicit use of `self` as the recipient of internal class or instance - messages unless to specify a method shadowed by a variable. - [[link](#self-messages)] - * RuboCop rule: Style/RedundantSelf - -``` ruby -class SomeClass - attr_accessor :message - - def greeting(name) - message = "Hi #{name}" # local variable in Ruby, not attribute writer - self.message = message - end -end -``` - ## Collections * Prefer `%w` to the literal array syntax when you need an array of pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy