From 89bc4bdfbe89e3f08b815711e914f0c94ec07aab Mon Sep 17 00:00:00 2001 From: Phill MV Date: Fri, 10 Jan 2025 12:43:59 -0500 Subject: [PATCH] Update STYLEGUIDE.md --- STYLEGUIDE.md | 16 ---------------- 1 file changed, 16 deletions(-) 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