Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit89bc4bd

Browse files
authored
Update STYLEGUIDE.md
1 parent5db0a50 commit89bc4bd

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-
<aname="self-messages"></a><sup>[[link](#self-messages)]</sup>
258-
* <ahref="https://docs.rubocop.org/rubocop/cops_style.html#styleredundantself">RuboCop rule: Style/RedundantSelf</a>
259-
260-
```ruby
261-
classSomeClass
262-
attr_accessor:message
263-
264-
defgreeting(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)

[8]ページ先頭

©2009-2025 Movatter.jp