Skip to content

Commit 89bc4bd

Browse files
authored
Update STYLEGUIDE.md
1 parent 5db0a50 commit 89bc4bd

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

STYLEGUIDE.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -252,22 +252,6 @@ class SomeClass
252252
end
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

0 commit comments

Comments
 (0)