1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-09 08:16:58 +02:00

Merge pull request #3910 from isolovev/patch-1

[ruby/ru] Fix comment of attr_accessor
This commit is contained in:
Max Schumacher
2020-07-07 15:26:58 +02:00
committed by GitHub

View File

@@ -480,7 +480,7 @@ class Human
@name
end
# Тоже самое можно определить с помощью att_accessor
# Тоже самое можно определить с помощью attr_accessor
attr_accessor :name
# Также можно создать методы только для записи или чтения