File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -252,22 +252,6 @@ class SomeClass
252252end
253253```
254254
255- * Avoid explicit use of ` self ` as the recipient of internal class or instance
256- messages unless to specify a method shadowed by a variable.
257- <a name =" self-messages " ></a ><sup >[[ link] ( #self-messages )] </sup >
258- * <a href =" https://docs.rubocop.org/rubocop/cops_style.html#styleredundantself " >RuboCop rule: Style/RedundantSelf</a >
259-
260- ``` ruby
261- class SomeClass
262- attr_accessor :message
263-
264- def greeting (name )
265- message = " Hi #{ name } " # local variable in Ruby, not attribute writer
266- self .message = message
267- end
268- end
269- ```
270-
271255## Collections
272256
273257* Prefer ` %w ` to the literal array syntax when you need an array of
You can’t perform that action at this time.
0 commit comments